1
0
mirror of https://github.com/simh/simh.git synced 2026-03-03 01:58:53 +00:00

makefile: Add support for building all simulators on illumos (Open Indiana)

- Proper compiler detection selects 64bit libraries when gcc generates
  64bit code.

Fix #1237
This commit is contained in:
Mark Pizzolato
2025-12-09 16:43:14 -10:00
parent 89b992d468
commit 9c20f9ca35
2 changed files with 5 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ Simulator binaries for x86 Linus, x86 macOS, and Windows for all recent changes
- Enhanced Ethernet functionality on macOS which leverages the OS provided vmnet capabilities. This is available on all intel and Apple Silicon macOS systems starting with Catalina (10.15) which was released in 2019.
- SCP IF command supports RegEx comparisons.
- Windows builds are supported running all versions of Microsoft Visual Studio, including the most recent VS2026.
- All simulators build with full functionality on illumos Open Indiana.
#### All simulators build cleanly under OpenVMS on ia64 systems.

View File

@@ -632,7 +632,10 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
ifeq (SunOS,$(OSTYPE))
OSNAME = Solaris
ifneq (lib,$(findstring lib,$(UNSUPPORTED_BUILD)))
LIBPATH := $(shell LANG=C; crle | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
ifneq (,$(shell gcc -dumpmachine 2>&1 | grep 64))
_LIB64 := -64
endif
LIBPATH := $(shell LANG=C; crle $(_LIB64) | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
endif
LIBEXT = so
OS_LDFLAGS += -lsocket -lnsl