Can't set dynamic library install_name
Can't set dynamic library install_name
- Subject: Can't set dynamic library install_name
- From: Wade Williams <email@hidden>
- Date: Thu, 8 Apr 2004 13:22:59 -0500
I'm having problems setting the install_name for a dynamic library, and
I can't figure out why. In my Deployment build style, I customize
Other C Flags with:
-D__MACOSX__ "-install_name"
"@executable_path/../Frameworks/openal.dylib"
as you can see, that is getting passed through:
> CompileCplusplus
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/al_osx.build/
> openal.dylib.build/Objects-normal/ppc/oalContext.o
> /usr/bin/g++-3.3 -c
> -F/Volumes/BigX/Users/wade/Development/openal/macosx/build
> -I/Volumes/BigX/Users/wade/Development/openal/macosx/build/include
> -arch ppc -fno-common -fpascal-strings -O3 -Wmost
> -Wno-four-char-constants -Wno-unknown-pragmas -pipe
> "-fmessage-length=0"
> -Wp,-header-mapfile,/Volumes/BigX/Users/wade/Development/openal/
> macosx/build/al_osx.build/openal.dylib.build/openal.dylib.hmap
> "-D__MACOSX__" "-install_name"
> "@executable_path/../Frameworks/openal.dylib" oalContext.cpp -o
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/al_osx.build/
> openal.dylib.build/Objects-normal/ppc/oalContext.o
But when I run otool -D on the library, the path is not set:
> dreamline:Targetware.app/Contents/Frameworks] wade% otool -D
> ./openal.dylib
> ./openal.dylib:
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/openal.dylib
So, next I tried setting it via the LDFLAGS. I customized LDFLAGS in
my deployment build style to:
"-dylib_install_name" "@executable_path/../Frameworks/openal.dylib"
but that resulted in:
> DynamicLibrary.LinkUsingFileList
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/openal.dylib
> /usr/bin/g++-3.3 -o
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/openal.dylib
> "-L/Volumes/BigX/Users/wade/Development/openal/macosx/build"
> "-F/Volumes/BigX/Users/wade/Development/openal/macosx/build"
> -filelist
> /Volumes/BigX/Users/wade/Development/openal/macosx/build/al_osx.build/
> openal.dylib.build/Objects-normal/LinkFileList "-framework" "vecLib"
> "-framework" "CoreAudio" "-framework" "CoreFoundation" "-framework"
> "AudioToolbox" "-framework" "AudioUnit" "-framework" "CoreServices"
> "-arch" "ppc" "-dylib_install_name"
> "@executable_path/../Frameworks/openal.dylib" "-Wl,-S" "-prebind"
> "-Wl,-single_module" "-dynamiclib" "-compatibility_version" "1"
> "-current_version" "1"
> g++-3.3: @executable_path/../Frameworks/openal.dylib: No such file or
> directory
What am I missing?
Thanks,
Wade
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.