cmake and rpath problems
Diane Bruce
db at db.net
Sun May 22 19:03:21 UTC 2016
This is a heads up about a bug some of you have run into
and I've reported here.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208120
To summarize: any binary or .so object linked using cmake will indeed
have a DT_RPATH entry, but it gets stripped out on install.
I worked around this with comms/sdr-wspr
by stripping the Fortran Flags to determine the RPATH and setting it
manually in CMakeLists.txt
+# temporary ugly hack
+string(REGEX MATCH "-rpath=.*" CMAKE_RPATH_ARG ${CMAKE_Fortran_FLAGS} )
+string(SUBSTRING ${CMAKE_RPATH_ARG} 7 -1 CMAKE_RPATH)
+set(CMAKE_INSTALL_RPATH ${CMAKE_RPATH} )
I know other ports have run into this.
Diane
--
- db at FreeBSD.org db at db.net http://www.db.net/~db
More information about the freebsd-ports
mailing list