OTHER_LDFLAGS by configuration
OTHER_LDFLAGS by configuration
- Subject: OTHER_LDFLAGS by configuration
- From: James Walker <email@hidden>
- Date: Tue, 05 Aug 2014 10:43:34 -0700
Using Xcode 4.6.3, I'm trying to use a third-party static library that
has different names for the release and debug versions. I tried
something like this in an .xcconfig:
OTHER_LDFLAGS[config=Release] = -lfoo
OTHER_LDFLAGS[config=Debug] = -lfoo_debug
In the build settings list for the target, I see
Other Linker Flags
Debug
Any Architecture | Any SDK -lfoo_debug
Release
Any Architecture | Any SDK -lfoo
But the actual ld command line generated by Xcode seems to just ignore
this, so of course the link fails. What's wrong?
By the way, if the .xcconfig just says
OTHER_LDFLAGS = -lfoo
then the link succeeds, but of course then I don't get to use the debug
library.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden