• 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
static to override dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static to override dylib


  • Subject: static to override dylib
  • From: Jake <email@hidden>
  • Date: Sun, 13 Jul 2008 01:36:44 -0400 (EDT)

Hello,

One of the project that I am porting to use Xcode
depends on it own custom-modified libiconv library
to include a number of additional text encoding
mappings that were specific to the project.

I have built the modified library from the commandline
with "configure && make" and have added its output to
my  project:

"libiconv.a" -> "External Frameworks"
"iconv.h"    -> "Source"

However, while the project builds fine I discover that
it still links to the /usr/lib/libiconv.2.dylib.
as otool -L on the executable shows:

/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.10)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 18.0.0)

(I have been playing with PRELINK_FLAGS, PRELINK_LIBS but
wasn't achieving the correct result.)

What is the recommended approach to configure Xcode to link in a
static library that overrides the dylib one in /usr/lib?

Jake
_______________________________________________
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


  • Follow-Ups:
    • Re: static to override dylib
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: Re: Xcode doc links that are not links
  • Next by Date: unexpectedly linking to Zerolink in Xcode 2.5
  • Previous by thread: Re: print application stdout to terminal?
  • Next by thread: Re: static to override dylib
  • Index(es):
    • Date
    • Thread