New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80160


Ignore:
Timestamp:
07/05/11 10:06:49 (4 years ago)
Author:
jeremyhu@…
Message:

gcc*: Misc build fixes for darwin11 or clang

gcc40 and gcc42 bail out on darwin11 like they do on darwin10.
gcc41 doesn't build for me on SL with any compiler, so I didn't mess with it.
gcc43 and gcc44 seem to work well with clang or on darwin11.

Maintainer ack via email

Location:
trunk/dports/lang
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/gcc40/Portfile

    r73842 r80160  
    9292} 
    9393 
     94platform darwin 11 { 
     95    pre-fetch { 
     96        return -code error "$name does not build on Lion." 
     97    } 
     98} 
     99 
    94100livecheck.type  regex 
    95101livecheck.url   http://gcc.gnu.org/gcc-4.0/ 
  • trunk/dports/lang/gcc42/Portfile

    r78606 r80160  
    6262    if {${os.major} >= 10} { 
    6363        pre-fetch { 
    64             ui_error "$name does not build on Snow Leopard." 
     64            ui_error "$name does not build on Snow Leopard or later." 
    6565            error "unsupported platform" 
    6666        } 
  • trunk/dports/lang/gcc43/Portfile

    r79828 r80160  
    9999            STRIP_FOR_TARGET=/usr/bin/strip 
    100100 
     101# STAGE1_CFLAGS="-O2 -fkeep-inline-functions" : from configure.ac 
     102# BOOT_CFLAGS="-O2 -g" : from Makefile.tpl 
     103# -std=gnu89 : for building with compilers that default to c99 
     104# -D_FORTIFY_SOURCE=0 : The built compiler might not understand newer builtins 
     105#                       exposed in libc headers for fortified string functions. 
     106#                       Yes, we need to set both BOOT_CFLAGS and STAGE1_CFLAGS 
     107#                       because STAGE1_CFLAGS is used with xgcc for libgcc 
     108if {${configure.compiler} == "clang"} { 
     109    # -O1 in STAGE1_CFLAGS : <rdar://problem/9720596> 
     110    build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O1 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" 
     111} else { 
     112    build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" 
     113} 
     114 
    101115use_parallel_build  yes 
    102116 
  • trunk/dports/lang/gcc44/Portfile

    r78606 r80160  
    101101use_parallel_build      yes 
    102102 
     103# STAGE1_CFLAGS="-O2 -fkeep-inline-functions" : from configure.ac 
     104# BOOT_CFLAGS="-O2 -g" : from Makefile.tpl 
     105# -std=gnu89 : for building with clang 
     106# -D_FORTIFY_SOURCE=0 : The built compiler might not understand newer builtins 
     107#                       exposed in libc headers for fortified string functions. 
     108#                       Yes, we need to set both BOOT_CFLAGS and STAGE1_CFLAGS 
     109#                       because STAGE1_CFLAGS is used with xgcc for libgcc 
     110build.args-append BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" 
     111 
    103112destroot.target install install-info-host 
    104113 
     
    120129 
    121130platform darwin 10 { 
     131        configure.args-append --enable-fully-dynamic-string 
     132} 
     133 
     134platform darwin 11 { 
    122135        configure.args-append --enable-fully-dynamic-string 
    123136} 
Note: See TracChangeset for help on using the changeset viewer.