mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Use CFLAGS instead of EXTRA_CFLAGS for sb-grovel
CFLAGS can be modified to allow cross-compilation, and building the runtime already respects CFLAGS.
This commit is contained in:
parent
c5a0ffc3e8
commit
302a48afba
|
|
@ -12,7 +12,7 @@ FASL=$(DEST)/$(SYSTEM).fasl
|
|||
ASD=$(DEST)/$(SYSTEM).asd
|
||||
|
||||
ifeq (SunOS,$(UNAME))
|
||||
EXTRA_CFLAGS+=-D_XOPEN_SOURCE=500 -D__EXTENSIONS__
|
||||
CFLAGS+=-D_XOPEN_SOURCE=500 -D__EXTENSIONS__
|
||||
PATH:=/usr/xpg4/bin:${PATH}
|
||||
endif
|
||||
ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
|
||||
|
|
@ -22,10 +22,10 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
|
|||
CC:=$(shell cygpath -m $(shell readlink -fn $(shell which $(CC))))
|
||||
endif
|
||||
ifeq (Linux,$(UNAME))
|
||||
EXTRA_CFLAGS+=-D_GNU_SOURCE
|
||||
CFLAGS+=-D_GNU_SOURCE
|
||||
endif
|
||||
|
||||
export CC SBCL EXTRA_CFLAGS
|
||||
export CC SBCL CFLAGS
|
||||
|
||||
all: $(FASL)
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ int main(int argc, char *argv[]) {
|
|||
(sb-ext:run-program
|
||||
cc
|
||||
(append
|
||||
(split-cflags (sb-ext:posix-getenv "EXTRA_CFLAGS"))
|
||||
(split-cflags (sb-ext:posix-getenv "CFLAGS"))
|
||||
#+(and linux largefile)
|
||||
'("-D_LARGEFILE_SOURCE" "-D_LARGEFILE64_SOURCE" "-D_FILE_OFFSET_BITS=64")
|
||||
#+64-bit-time
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ if [ -z "$CC" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
unset EXTRA_CFLAGS # avoid any potential interference
|
||||
export CC LANG LC_ALL
|
||||
|
||||
# Load our build configuration
|
||||
|
|
|
|||
Loading…
Reference in a new issue