ia64/xen-unstable

changeset 11889:da66691687df

[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>
author kfraser@localhost.localdomain
date Wed Oct 18 18:13:57 2006 +0100 (2006-10-18)
parents 797430d25f1b
children 71e2a165aa7f
files config/SunOS.mk tools/python/Makefile
line diff
     1.1 --- a/config/SunOS.mk	Wed Oct 18 17:59:04 2006 +0100
     1.2 +++ b/config/SunOS.mk	Wed Oct 18 18:13:57 2006 +0100
     1.3 @@ -31,4 +31,5 @@ else
     1.4  CFLAGS ?= -O1 -fno-omit-frame-pointer
     1.5  endif
     1.6  
     1.7 -CFLAGS += -Wa,--divide
     1.8 +CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__
     1.9 +
     2.1 --- a/tools/python/Makefile	Wed Oct 18 17:59:04 2006 +0100
     2.2 +++ b/tools/python/Makefile	Wed Oct 18 18:13:57 2006 +0100
     2.3 @@ -6,15 +6,15 @@ all: build
     2.4  
     2.5  .PHONY: build
     2.6  build:
     2.7 -	CFLAGS="$(CFLAGS)" python setup.py build
     2.8 +	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build
     2.9  
    2.10  .PHONY: install
    2.11  ifndef XEN_PYTHON_NATIVE_INSTALL
    2.12  install: all
    2.13 -	CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force
    2.14 +	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force
    2.15  else
    2.16  install: all
    2.17 -	CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
    2.18 +	CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
    2.19  endif
    2.20  
    2.21  .PHONY: test