diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-18 18:13:57 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-18 18:13:57 +0100 |
commit | 2b30fc3c70a02875b9d2c8b9b1b28917f343dca3 (patch) | |
tree | cc560e591363020b0516b73a293912dbdc1b387c | |
parent | bc29b3f70e402f9c2a5907f335d9cb4fc1fbba43 (diff) | |
download | xen-2b30fc3c70a02875b9d2c8b9b1b28917f343dca3.tar.gz xen-2b30fc3c70a02875b9d2c8b9b1b28917f343dca3.tar.bz2 xen-2b30fc3c70a02875b9d2c8b9b1b28917f343dca3.zip |
[SOLARIS] More tools fixes.
Many of the tools use C99 features such as bool, or expect certain functions.
Fix the CFLAGS to enable these on Solaris.
Also make sure the correct $CC is passed to Python.
Signed-off-by: John Levon <john.levon@sun.com>
-rw-r--r-- | config/SunOS.mk | 3 | ||||
-rw-r--r-- | tools/python/Makefile | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/config/SunOS.mk b/config/SunOS.mk index ca73d6f949..21568304fc 100644 --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -31,4 +31,5 @@ else CFLAGS ?= -O1 -fno-omit-frame-pointer endif -CFLAGS += -Wa,--divide +CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ + diff --git a/tools/python/Makefile b/tools/python/Makefile index e73d624414..6b84446ee6 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -6,15 +6,15 @@ all: build .PHONY: build build: - CFLAGS="$(CFLAGS)" python setup.py build + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL install: all - CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force else install: all - CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force endif .PHONY: test |