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: Pass args to ld?



On Friday, June 27, 2003, at 12:19 PM, Devang Patel wrote:

On Tuesday, June 24, 2003, at 9:45 PM, Andrew Begel wrote:

I'm trying to use g++ to link a binary and I want to pass -m to ld. /usr/bin/libtool is getting in the way.

I want to say

g++ -dynamiclib -Wl,-m -o OBJ.powerpc-apple-darwin6.6/libHarmonia_Common. ...

Try g++ -dynamiclib -Wl,-lm -o OBJ....

I think he actually wants to pass -m:
-m Don't treat multiply defined symbols from the
linked objects as a hard error;

Although, it does later say "use is strongly discouraged", perhaps this is just another way of discouraging it's use :)

Peter
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Pass args to ld? (From: Devang Patel <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.