Ticket #24899: mcpp-use-configured-archs.diff

File mcpp-use-configured-archs.diff, 812 bytes (added by jmroot (Joshua Root), 15 years ago)
  • Portfile

     
    2828                    patch-src__system.H \
    2929                    fix-core-dumps.patch
    3030configure.args-append --enable-mcpplib --mandir=${prefix}/share/man
    31 # +universal: Install universal binary of mcpp for i386 and ppc.
     31# +universal: Install universal binary of mcpp.
    3232# Do not append these options to configure, but append to make.
    33 variant universal { build.args-append CFLAGS+='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc' }
     33variant universal { build.args-append CFLAGS+='${configure.universal_cflags}' }
     34if {![variant_isset universal]} {
     35    build.args-append CFLAGS+='${configure.cc_archflags}'
     36}