summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick (solaris) <rjek@rjek.com>2013-03-29 14:39:54 +0000
committerRob Kendrick (solaris) <rjek@rjek.com>2013-03-29 14:39:54 +0000
commit85c0fc509e35060e385a759074ed0e4d749a4de5 (patch)
tree72c8e4fc10b1d9798101032ce556217b8e51158b
parent200befa8f07cd5d40938997eb298e51a95560c4c (diff)
downloadluxio-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--Makefile4
-rw-r--r--config.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5684f72..5d08eec 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@
diff --git a/config.h b/config.h
index b9b0096..68930dd 100644
--- a/config.h
+++ b/config.h
@@ -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