X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fasdf-module.mk;h=a4963f6954dbad6d8cb9c3f00a2c20c11725269a;hb=e119a2f79cf36039a39996f5490934b4d927529a;hp=555546f272de68a9be217cf25d8d93de59f40cfc;hpb=095a47764e687fa76cf0e2803633d30c65c00f40;p=sbcl.git diff --git a/contrib/asdf-module.mk b/contrib/asdf-module.mk index 555546f..a4963f6 100644 --- a/contrib/asdf-module.mk +++ b/contrib/asdf-module.mk @@ -7,7 +7,14 @@ CC=gcc # directly via ASDF from a non-C-aware module which has these tricky # ones as dependencies. -UNAME:=$(shell uname -m) +UNAME:=$(shell uname -s) + +ifeq (SunOS,$(UNAME)) + EXTRA_CFLAGS=-D_XOPEN_SOURCE=500 -D__EXTENSIONS__ +endif +ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME))) + EXTRA_CFLAGS=-mno-cygwin +endif export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS @@ -22,5 +29,4 @@ test: all install: $(EXTRA_INSTALL_TARGETS) - tar cf - . | ( cd $(BUILD_ROOT)$(INSTALL_DIR) && tar xpvf - ) - ( cd $(BUILD_ROOT)$(SBCL_HOME)/systems && ln -fs ../$(SYSTEM)/$(SYSTEM).asd . ) + tar --exclude=CVS -cf - . | ( cd "$(BUILD_ROOT)$(INSTALL_DIR)" && tar --no-same-owner -xpvf - )