static to override dylib
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