MantisBT - CMake
View Issue Details
0013573CMakeCMakepublic2012-10-05 10:012013-03-04 08:38
muhkuh 
Brad King 
normalminoralways
closedfixed 
CMake 2.8.9 
CMake 2.8.11 
0013573: RPATH not supported when cross compiling for FreeBSD
We have a MinGW hosted gcc cross compiler for windows that that targets FreeBSD. The created makefiles for MinGW make don't add any -rpath options to the linker command line.
I don't really know how how to provide a test case. The cross compiler is pretty large as it needs a lot of system libraries and headers to function properly. I can provide it if neccessary.
I think the reason for this is in:
CMAKE_ROOT/share/cmake-2.8/Modules/Platform/FreeBSD.cmake.
If I comment out the checks for existence of a file "/usr/include/dlfcn.h" everything starts working. Unfortunately I don't know the proper way to deal with this in a way that it still checks what it is supposed to check in a cross compiling environment.
No tags attached.
Issue History
2012-10-05 10:01muhkuhNew Issue
2012-10-05 10:39Brad KingNote Added: 0031182
2012-10-05 10:39Brad KingAssigned To => Brad King
2012-10-05 10:39Brad KingStatusnew => resolved
2012-10-05 10:39Brad KingResolutionopen => fixed
2012-10-05 10:39Brad KingTarget Version => CMake 2.8.11
2013-03-04 08:38Robert MaynardNote Added: 0032467
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0031182)
Brad King   
2012-10-05 10:39   
The check for "/usr/include/dlfcn.h" on the host is clearly wrong. The entire check is left from ancient changes anyway. It is simplest to remove it:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6f68ef42 [^]
(0032467)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.