Define _GNU_SOURCE when building contribs on Linux.
authorStas Boukarev <stassats@gmail.com>
Sat, 25 Aug 2012 04:57:11 +0000 (08:57 +0400)
committerStas Boukarev <stassats@gmail.com>
Sat, 25 Aug 2012 04:57:11 +0000 (08:57 +0400)
sb-posix:o-direct doesn't get grovelled without it.

contrib/asdf-module.mk

index 3f88bdb..9c32b23 100644 (file)
@@ -21,6 +21,9 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
   # paths, either.
   CC:=$(shell cygpath -m $(shell readlink -fn $(shell which $(CC))))
 endif
+ifeq (Linux,$(UNAME))
+  EXTRA_CFLAGS=-D_GNU_SOURCE
+endif
 
 export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS