Changeset 98087


Ignore:
Timestamp:
Sep 24, 2012, 5:37:09 PM (12 years ago)
Author:
ryandesign@…
Message:

mongodb: change how flags are supplied to scons (specifically -arch flags, but also CPPFLAGS and LDFLAGS), resulting in scons no longer putting quotation marks around the -arch flags in the CXXFLAGS, resulting in the build now succeeding with gcc

Location:
trunk/dports/databases/mongodb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mongodb/Portfile

    r98086 r98087  
    4343post-patch {
    4444    reinplace "s|@@PREFIX@@|${prefix}|g" \
    45         ${worksrcpath}/SConstruct \
    4645        ${worksrcpath}/distsrc/client/SConstruct
    4746}
     
    5655
    5756build.env           TERM=xterm \
    58                     CFLAGS="[get_canonical_archflags cc]" \
    59                     CPPFLAGS="-I${prefix}/include/js" \
    60                     CXXFLAGS="[get_canonical_archflags cxx]" \
    61                     LINKFLAGS="[get_canonical_archflags ld]"
     57                    ARCHFLAGS="[get_canonical_archflags]" \
     58                    CPPFLAGS="${configure.cppflags} -I${prefix}/include/js" \
     59                    LDFLAGS="${configure.ldflags}"
    6260
    6361build.cmd           ${prefix}/bin/scons
  • trunk/dports/databases/mongodb/files/patch-SConstruct.diff

    r98079 r98087  
    11--- SConstruct.orig     2012-08-28 00:28:11.000000000 -0500
    2 +++ SConstruct  2012-08-30 04:19:10.000000000 -0500
    3 @@ -486,21 +486,14 @@
     2+++ SConstruct  2012-09-24 11:16:43.000000000 -0500
     3@@ -486,21 +486,9 @@
    44     darwin = True
    55     platform = "osx" # prettier than darwin
     
    2020-       env.Append( EXTRACPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) )
    2121-       env.Append( EXTRALIBPATH=filterExists(["/sw/lib/", "/opt/local/lib"]) )
    22 +    env.Append( EXTRACPPPATH=["@@PREFIX@@/include"] )
    23 +    env.Append( EXTRALIBPATH=["@@PREFIX@@/lib"] )
    24 +    env["CFLAGS"] = os.getenv("CFLAGS")
    25 +    env["CPPFLAGS"] = os.getenv("CPPFLAGS")
    26 +    env["CXXFLAGS"] = os.getenv("CXXFLAGS")
    27 +    env["LINKFLAGS"] = os.getenv("LINKFLAGS")
     22+    env.MergeFlags( [ os.getenv("CPPFLAGS"), os.getenv("LDFLAGS"), os.getenv("ARCHFLAGS") ] )
    2823 
    2924 elif os.sys.platform.startswith("linux"):
Note: See TracChangeset for help on using the changeset viewer.