Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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


Peter:

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.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: "YJZ" <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: Terry Lambert <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: Boyd Waters <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: "YJZ" <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: Peter O'Gorman <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: "YJZ" <email@hidden>)
 >Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version (From: Peter O'Gorman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.