diff options
| author | scoder <none@none> | 2008-12-12 19:16:23 +0100 |
|---|---|---|
| committer | scoder <none@none> | 2008-12-12 19:16:23 +0100 |
| commit | fb1dde7b38efeef29dca333641fd384b3ed41825 (patch) | |
| tree | b9627c1ac83284a9549a0493178c478cf86dfac4 /buildlibxml.py | |
| parent | becaf89285f8dfc4bd770aa7fa19fcdedbde4113 (diff) | |
| download | python-lxml-fb1dde7b38efeef29dca333641fd384b3ed41825.tar.gz | |
[svn r4036] r4912@delle: sbehnel | 2008-12-12 19:15:08 +0100
keep old env vars when setting Mac compile flags
--HG--
branch : trunk
Diffstat (limited to 'buildlibxml.py')
| -rw-r--r-- | buildlibxml.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/buildlibxml.py b/buildlibxml.py index 38f2bedb..3d9da0de 100644 --- a/buildlibxml.py +++ b/buildlibxml.py @@ -171,11 +171,13 @@ def build_libxml2xslt(download_dir, build_dir, # We compile Universal if we are on a machine > 10.3 major_version = int(os.uname()[2].split('.')[0]) if major_version > 7: - call_setup['env'] = { + env = os.environ.copy() + env.update({ 'CFLAGS' : "-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2", 'LDFLAGS' : "-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk", 'MACOSX_DEPLOYMENT_TARGET' : "10.3" - } + }) + call_setup['env'] = env # We may loose the link to iconv, so make sure it's there static_binaries.append('-liconv') |
