|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [SOLARIS] More tools fixes.
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID da66691687dfd90c55420cfdf27f55d18cca7810
# Parent 797430d25f1b9c8ac0f60804a5abca5ac7b3afc9
[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@xxxxxxx>
---
config/SunOS.mk | 3 ++-
tools/python/Makefile | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff -r 797430d25f1b -r da66691687df config/SunOS.mk
--- a/config/SunOS.mk Wed Oct 18 17:59:04 2006 +0100
+++ b/config/SunOS.mk Wed Oct 18 18:13:57 2006 +0100
@@ -31,4 +31,5 @@ CFLAGS ?= -O1 -fno-omit-frame-pointer
CFLAGS ?= -O1 -fno-omit-frame-pointer
endif
-CFLAGS += -Wa,--divide
+CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__
+
diff -r 797430d25f1b -r da66691687df tools/python/Makefile
--- a/tools/python/Makefile Wed Oct 18 17:59:04 2006 +0100
+++ b/tools/python/Makefile Wed Oct 18 18:13:57 2006 +0100
@@ -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
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [SOLARIS] More tools fixes.,
Xen patchbot-unstable <=
|
|
|
|
|