This sounds like something which should be added to the FAQ if its not there 
already.

Also, I'm wondering if we should maybe enhance that validator test so that if 
it finds a Shlibs with an incomplete pathname, it gives additional advice (such 
as what Ben wrote in this email...)

  -- Dave


On Sep 21, 2010, at 6:12 AM, 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)
> 
> -- 
> Benjamin Reed a.k.a. Ranger Rick a.k.a. Raccoon Fink
> Fink, KDE, and Mac OS X development
> 
> Blog: http://www.raccoonfink.com/
> Music: http://music.raccoonfink.com/
> 
> 
> 
> ------------------------------------------------------------------------------
> 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


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

Reply via email to