Permalink
Browse files

Fix Solaris compilation options.

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.
  • Loading branch information...
1 parent d66b1f2 commit 90aa613c84e6978e93fc05df6b7b97d7521522bd @easye easye committed with luismbo Oct 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/GNUmakefile
View
@@ -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

0 comments on commit 90aa613

Please sign in to comment.