#33987: llvm-3.0 fails to build on Tiger/ppc -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: tiger | Port: llvm-3.0 -------------------------------------+-------------------------------------- Comment(by jeremyhu@…): Please try this, and if it works, try removing the --disable-debug-symbols to see if it still works {{{ Index: Portfile =================================================================== --- Portfile (revision 92290) +++ Portfile (working copy) @@ -65,7 +65,9 @@ if {${configure.compiler} == "gcc-4.0"} { configure.compiler gcc-4.2 if {![file exists ${configure.cc}]} { - depends_build-append port:apple-gcc42 + depends_build-append port:apple-gcc42 port:ld64 port:cctools + depends_skip_archcheck-append apple-gcc42 ld64 cctools + configure.compiler apple-gcc-4.2 } } @@ -95,10 +97,18 @@ platform darwin { if {${build_arch} == "i386" } { configure.pre_args-append --build=i686-apple-darwin${os.major} + } elseif {${build_arch} == "ppc" } { + configure.pre_args-append --build=powerpc-apple-darwin${os.major} + } elseif {${build_arch} == "ppc64" } { + configure.pre_args-append --build=powerpc64-apple- darwin${os.major} } else { configure.pre_args-append --build=${build_arch}-apple- darwin${os.major} } + if {[string match "*ppc*" [get_canonical_archs]]} { + configure.args-append --with-optimize-option=-Os --disable-debug- symbols + } + post-destroot { foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] { set liba_nodr [string map "${destroot} {}" ${liba}] }}} -- Ticket URL: <https://trac.macports.org/ticket/33987#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS