Build as a Bundle-able Library From Command-Line

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
oats
In need of some credit
In need of some credit
Posts: 1
Joined: Fri May 12, 2017 6:24 pm

Build as a Bundle-able Library From Command-Line

Post by oats »

The wiki mentions that
wxWidgets dynamic libraries as built from the Xcode project will be automatically bundle-able (their path should be set to @executable_path/Contents/Frameworks/libname.dylib).
How can I achieve this when building from the command line using ./configure and the generated Makefiles? This article http://qin.laya.com/tech_coding_help/dylib_linking.html explains a post-build fix using install_name_tool (and also mentions how to build with an id that's relative to the executable using -install_name). What do I need to change in the generated Makefile to feed -install_name as an option for building? Or maybe this can be done with an option in ./configure?
Post Reply