Fix Solaris compilation options.
authoreasye <evenson.not.org@gmail.com>
Mon, 29 Oct 2012 14:58:27 +0000 (15:58 +0100)
committerLuís Oliveira <loliveira@common-lisp.net>
Sun, 4 Nov 2012 14:27:30 +0000 (14:27 +0000)
The "-fPIC" flag will always be necessary when using GCC-derived compilers as I understand it.

Additionally, Solaris compilation options now unconditionally tries a
64bit build.  Contemporary Solaris (since Solaris 10), are hybrid
32/64 bit environments where "uname -m" reports "i86pc".  Whether one
wants the 32 or 64 bit version of the libraries depends on the type of
the Lisp implementation doing the loading, which is currently not
available in the environment in which make(1) is executing.

tests/GNUmakefile

index e3aeac1..0776a19 100644 (file)
@@ -43,7 +43,7 @@ CFLAGS_64      := -m64
 endif
 else
 ifeq ($(OSTYPE), SunOS)
-CFLAGS         := -c -Wall -std=c99 -pedantic
+CFLAGS         := -m64 -fPIC -c -Wall -std=c99 -pedantic
 else
 # Let's assume this is win32
 SHLIB_EXT      := .dll