cmake and rpath problems

Diane Bruce db at
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.

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

I know other ports have run into this.

- db at db at

More information about the freebsd-ports mailing list