Fix build on Solaris non-sparc.

Closes #2136. Thanks to chuckunix.
pull/2166/head
Roger A. Light 5 years ago
parent 6a4a547892
commit eead0d2943

@ -28,6 +28,7 @@ Build:
- A variety of minor build related fixes, like functions not having previous - A variety of minor build related fixes, like functions not having previous
declarations. declarations.
- Fix CMake cross compile builds not finding opensslconf.h. Closes #2160. - Fix CMake cross compile builds not finding opensslconf.h. Closes #2160.
- Fix build on Solaris non-sparc. Closes #2136.
2.0.9 - 2021-03-11 2.0.9 - 2021-03-11

@ -140,6 +140,7 @@ DB_HTML_XSL=man/html.xsl
#MANCOUNTRIES=en_GB #MANCOUNTRIES=en_GB
UNAME:=$(shell uname -s) UNAME:=$(shell uname -s)
ARCH:=$(shell uname -p)
ifeq ($(UNAME),SunOS) ifeq ($(UNAME),SunOS)
ifeq ($(CC),cc) ifeq ($(CC),cc)
@ -199,11 +200,17 @@ ifeq ($(WITH_SHARED_LIBRARIES),yes)
endif endif
ifeq ($(UNAME),SunOS) ifeq ($(UNAME),SunOS)
SEDINPLACE:=
ifeq ($(ARCH),sparc)
ifeq ($(CC),cc) ifeq ($(CC),cc)
LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC
else else
LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC
endif endif
endif
ifeq ($(ARCH),i386)
LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC
endif
ifeq ($(CXX),CC) ifeq ($(CXX),CC)
LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -KPIC LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -KPIC

Loading…
Cancel
Save