From: John Levon Subject: [PATCH] build with correct CFLAGS on Solaris Date: Wed, 18 Oct 2006 17:44:18 +0100 Message-ID: <20061018164418.GA8966@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1161189563 25200 # Node ID f86a41c2fd4c90223a40a526b4b4c6e977cf9ce6 # Parent 9896b7c861815d0939ef9915904002bc97797386 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 diff --git a/config/SunOS.mk b/config/SunOS.mk --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -33,4 +33,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 --git a/tools/python/Makefile b/tools/python/Makefile --- 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