#37839: webkit-gtk: ld: scattered reloc r_address too large ---------------------------+------------------------ Reporter: ryandesign@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: powerpc Port: webkit-gtk | ---------------------------+------------------------ Comment (by ryandesign@…): Replying to [comment:1 jeremyhu@…]:
Can you try using -Os instead of -O2? You may get lucky and squeeze it down just enough.
I used: {{{ platform powerpc { # https://trac.macports.org/ticket/37839 configure.optflags -Os } }}} Unfortunately although `-Os` ended up on the compile lines, so did `-O2` after it, rendering it useless. This appears to be because the configure.ac helpfully does: {{{ # Add the appropriate 'O' level for optimized builds if test "$enable_optimizations" = "yes"; then CXXFLAGS="$CXXFLAGS -O2" CFLAGS="$CFLAGS -O2" else CXXFLAGS="$CXXFLAGS -O0" CFLAGS="$CFLAGS -O0" fi }}} I'll try again after removing that. -- Ticket URL: <https://trac.macports.org/ticket/37839#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS