Changeset 141235


Ignore:
Timestamp:
Oct 13, 2015, 7:10:18 AM (4 years ago)
Author:
jeremyhu@…
Message:

llvm-gcc42: Fix build failure with clang (#49241)

Location:
trunk/dports/lang/llvm-gcc42
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/llvm-gcc42/Portfile

    r141206 r141235  
    77name                    llvm-gcc42
    88version                 2336.11
    9 revision                2
     9revision                3
    1010set gcc_version         4.2.1
    1111categories              lang
     
    5555set symroot ${workpath}/symroot
    5656
    57 # https://trac.macports.org/ticket/42899
    58 # TODO: Fix it to build with newer clang
    59 compiler.blacklist-append {clang > 503} macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.7
    60 
    6157# Don't compile with self
    6258compiler.blacklist-append macports-llvm-gcc-4.2
     
    8379        fixincludes.patch
    8480
     81if {[string match *clang* ${configure.cc}]} {
     82    patchfiles-append clang-optimization.patch
     83}
     84
    8585post-extract {
    8686    xinstall -W ${filespath} build_gcc ${worksrcpath}
     
    130130    if {[string match "*clang*" ${configure.compiler}]} {
    131131        reinplace "s:--enable-werror : :" ${worksrcpath}/build_gcc
     132    }
     133
     134    # ltmain.sh notes 'On all known operating systems, these are identical', and -module has gone
     135    # away with Apple's clang-3.4
     136    if {[string match *clang* ${configure.cc}]} {
     137         reinplace "s:module:export_dynamic:" ${worksrcpath}/llvmCore/Makefile.rules
     138         reinplace "s:-no-undefined::" ${worksrcpath}/llvmCore/tools/lto/Makefile
    132139    }
    133140}
Note: See TracChangeset for help on using the changeset viewer.