mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[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>
This commit is contained in:
1 parent
bc29b3f70e
commit
2b30fc3c70
2 files changed
+5
-4
No files matched your search
+2
-1
@@ -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__
|
||||
|
||||
@@ -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
|
||||
|
||||