diff options
author | Rob Kendrick (solaris) <rjek@rjek.com> | 2013-03-29 14:39:54 +0000 |
---|---|---|
committer | Rob Kendrick (solaris) <rjek@rjek.com> | 2013-03-29 14:39:54 +0000 |
commit | 85c0fc509e35060e385a759074ed0e4d749a4de5 (patch) | |
tree | 72c8e4fc10b1d9798101032ce556217b8e51158b | |
parent | 200befa8f07cd5d40938997eb298e51a95560c4c (diff) | |
download | luxio-85c0fc509e35060e385a759074ed0e4d749a4de5.tar.gz |
Build under Solaris 11. Had to remove -Wl,--no-as-needed from link stage; may need to add this back for OpenBSD
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | config.h | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -130,7 +130,7 @@ lua-5.1-install: lua-5.1 $(INSTALL) -m 644 $(LUALIBS) $(DESTDIR)$(LUA51_LMOD_INST)/luxio/ luxio-5.1.so: luxio-5.1.o - $(CC) $(LDFLAGS) -shared -Wl,--no-as-needed -o luxio-5.1.so $(LUA51_LIB) $(EXTRA_LIBS) $^ + $(CC) $(LDFLAGS) -shared -o luxio-5.1.so $(LUA51_LIB) $(EXTRA_LIBS) $^ lua-5.2: luxio-5.2.so ln -s -f luxio-5.2.so luxio.so @@ -143,7 +143,7 @@ lua-5.2-install: lua-5.2 luxio-5.2.so: luxio-5.2.o - $(CC) $(LDFLAGS) -shared -Wl,--no-as-needed -o luxio-5.2.so $(LUA52_LIB) $(EXTRA_LIBS) $^ + $(CC) $(LDFLAGS) -shared -o luxio-5.2.so $(LUA52_LIB) $(EXTRA_LIBS) $^ luxio-5.1.o: luxio.c luxio_constants.h $(CC) $(CFLAGS) -fPIC $(LUA51_INC) -c $< -o $@ @@ -18,6 +18,11 @@ # define _POSIX_C_SOURCE 1 #endif +#ifndef _POSIX_PTHREAD_SEMANTICS + /* Solaris horror */ +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif + #ifndef LOGIN_NAME_MAX # define LOGIN_NAME_MAX 9 #endif |