Date: Sun, 22 May 2016 15:03:12 -0400 From: Diane Bruce <db@db.net> To: freebsd-ports@FreeBSD.org Subject: cmake and rpath problems Message-ID: <20160522190312.GA99013@night.db.net>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org db@db.net http://www.db.net/~db
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160522190312.GA99013>