On Sep 20, 2010, at 5:12 PM, Benjamin Reed wrote: > On 9/20/10 5:03 PM, Ebrahim Mayat wrote: >> Since we are in the process of migrating to cmake from autotools, i >> would like to rectify this error. > > This is a common issue with cmake projects. People write the cmake > bits on linux and don't realize they're missing settings for proper > ld initialization on other platforms. :) > > > You generally need something along the lines of this in > CMakeLists.txt: > > set (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name > (32/64)" ) > set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" > CACHE STRING "Library directory name") > > set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) > set(CMAKE_INSTALL_RPATH ${LIB_DESTINATION} ) > > if(APPLE) > set(CMAKE_INSTALL_NAME_DIR ${LIB_DESTINATION}) > endif(APPLE)
Many thanks for this valuable insight Ranger Rick. So for now I would need to patch CMakeLists.txt for the sake of portability. (This follows another valuable porting suggestion that Jean-François Mertens had earlier made to myself and the lead devs of fluidsynth regarding certain typedefs in the project's source code.) Thank you again finkers! Ebrahim ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel