[kde-freebsd] [Bug 208120] devel/cmake strips necessary rpath when installing any gnu compiler from ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 10 13:27:43 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208120

--- Comment #10 from Diane Bruce <db at FreeBSD.org> ---
Sure. My original thought was it belonged in cmake.mk anyway! groot@ convinced
me it should go in cmake port itself and myself don't care.

The pkg-message is -Wl,-rpath=%%TARGLIB%%
Which is dutifully added with USES= fortran but cmake.mk doesn't pick up
the rpath variable. That entire string is what is exposed out of the port
make subsystem and available to the port Makefile. We know at port build
time that we are using fortran hence would know to add the TARGLIB magic
but TARGLIB is not exposed.

Examining Uses fortran.mk

I note

FFLAGS+=        -Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}

If _GCC_VER was available in the Makefile for the port I simply would have
added 

CMAKE_ARGS+= -DCMAKE_INSTALL_RPATH::STRING="${LOCALBASE}/lib/gcc${_GCC_VER}" 

and be done with it.

Similar could be done with GCC if set.

Thoughts?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list