diff options
author | Steven Barth <steven@midlink.org> | 2009-03-09 09:37:08 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-03-09 09:37:08 +0000 |
commit | 589e680970d44e5bd006844bdeb6ed355c8d345b (patch) | |
tree | 5920ecf03f66480e61bdb0c522c6f9bac4aca5c5 /libs/nixio/Makefile | |
parent | 30b7bc7c623dbef9683b1ec1762a78bd0b6d684d (diff) |
Make nixio compile on OpenSolaris
Diffstat (limited to 'libs/nixio/Makefile')
-rw-r--r-- | libs/nixio/Makefile | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/nixio/Makefile b/libs/nixio/Makefile index df63dc183..f8d01b781 100644 --- a/libs/nixio/Makefile +++ b/libs/nixio/Makefile @@ -6,8 +6,6 @@ AXTLS_VERSION = 1.2.1 AXTLS_DIR = axTLS AXTLS_FILE = $(AXTLS_DIR)-$(AXTLS_VERSION).tar.gz NIXIO_TLS ?= axtls -EXTRA_CFLAGS = -std=c99 -NIXIO_CFLAGS = -D_XOPEN_SOURCE=500 NIXIO_OBJ = src/nixio.o src/socket.o src/sockopt.o src/bind.o src/address.o \ src/poll.o src/io.o src/file.o src/splice.o src/process.o \ @@ -24,10 +22,6 @@ ifeq ($(NIXIO_TLS),openssl) TLS_LDFLAGS = -lssl endif -ifeq ($(OS),Linux) - NIXIO_CFLAGS = -D_GNU_SOURCE -endif - %.o: %.c $(COMPILE) $(NIXIO_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< @@ -55,7 +49,7 @@ $(AXTLS_DIR)/.prepared: touch $@ src/libaxtls.a: $(AXTLS_DIR)/.prepared - $(MAKE) -C $(AXTLS_DIR) CC=$(CC) CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS) $(FPIC) '-Dalloca(size)=__builtin_alloca(size)' -Wall -pedantic -I../config -I../ssl -I../crypto" LDFLAGS="$(LDFLAGS)" OS="$(OS)" clean all + $(MAKE) -C $(AXTLS_DIR) CC=$(CC) CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS) $(FPIC) -Wall -pedantic -I../config -I../ssl -I../crypto" LDFLAGS="$(LDFLAGS)" OS="$(OS)" clean all cp -p $(AXTLS_DIR)/_stage/libaxtls.a src clean: luaclean |