• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OTHER_LDFLAGS by configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: xcodebuild Messing with Time Machine
  • Next by Date: New 10.9.5 Gatekeeper rules (and a rant about them changing so often)
  • Previous by thread: Re: xcodebuild Messing with Time Machine [Details Exposed]
  • Next by thread: New 10.9.5 Gatekeeper rules (and a rant about them changing so often)
  • Index(es):
    • Date
    • Thread