gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version

Boyd Waters bwaters at nrao.edu
Sun Jul 13 22:47:27 PDT 2008

On Jul 13, 2008, at 8:44 PM, Peter O'Gorman wrote:

> Easiest solutions are to update the libtool version in the package  
> that
> you are attempting to build (autoreconf -fi) or simple sed out ${wl}
> before the -compatibility_version etc in ltmain.sh
> This is what I committed when the gcc build problem was reported:
> http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commitdiff;h=eee885d7c58eea2b9fef52798ef2a1e7adb9be4f
> Using sed to remove the '${wl}' from verstring in ltmain.sh before
> configure should work fine:
> sed -e '/verstring=/s/\${wl}//g' < ltmain.sh > ltmain.fixed; mv
> ltmain.fixed ltmain.sh


This explanation helps me a *lot*, thanks!

In our collection of ~50 MacPorts, I've had to twiddle libtool in a  
number of them. I just applied a patch to the libtool script that  
comes with the package, essentially what your sed example does.  Now I  
know why.

More information about the macports-dev mailing list