Changeset 1136 for trunk/SConstruct


Ignore:
Timestamp:
08/14/06 16:16:31 (18 years ago)
Author:
mar637
Message:

fixed error in moduledir hack for 64bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1135 r1136  
    77
    88moduledir = distutils.sysconfig.get_python_lib()
     9if  platform.architecture()[0] == '64bit':
     10    # hack to install into /usr/lib64 if scons is in the 32bit /usr/lib/
     11    if moduledir.startswith("/usr/lib/"):
     12        moduledir.replace("lib", "lib64")
    913
    1014opts = Options("userconfig.py")
     
    6569# general CPPFLAGS
    6670env.Append(CPPFLAGS=['-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-O3'])
     71
    6772# 64bit flags
    6873if  platform.architecture()[0] == '64bit':
    6974    env.Append(CPPFLAGS=['-fPIC', '-D__x86_64__', '-DAIPS_64B'])
    70     # hack to install into /usr/lib64 if scons is in the 32bit /usr/lib/
    71     if moduledir.startswith("/usr/lib/"):
    72         moduledir.replace("lib","lib64")
     75
    7376if env["PLATFORM"] == "darwin":
    7477    env['SHLINKFLAGS'] = '$LINKFLAGS -bundle'
Note: See TracChangeset for help on using the changeset viewer.