Skip to content

Commit

Permalink
Fix build on Solaris non-sparc.
Browse files Browse the repository at this point in the history
Closes #2136. Thanks to chuckunix.
  • Loading branch information
ralight committed Apr 3, 2021
1 parent 6a4a547 commit eead0d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Expand Up @@ -28,6 +28,7 @@ Build:
- A variety of minor build related fixes, like functions not having previous
declarations.
- 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
Expand Down
13 changes: 10 additions & 3 deletions config.mk
Expand Up @@ -140,6 +140,7 @@ DB_HTML_XSL=man/html.xsl
#MANCOUNTRIES=en_GB

UNAME:=$(shell uname -s)
ARCH:=$(shell uname -p)

ifeq ($(UNAME),SunOS)
ifeq ($(CC),cc)
Expand Down Expand Up @@ -199,9 +200,15 @@ ifeq ($(WITH_SHARED_LIBRARIES),yes)
endif

ifeq ($(UNAME),SunOS)
ifeq ($(CC),cc)
LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC
else
SEDINPLACE:=
ifeq ($(ARCH),sparc)
ifeq ($(CC),cc)
LIB_CFLAGS:=$(LIB_CFLAGS) -xc99 -KPIC
else
LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC
endif
endif
ifeq ($(ARCH),i386)
LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC
endif

Expand Down

0 comments on commit eead0d2

Please sign in to comment.