Saturday, December 07, 2019

Difference between rpath of ld.lld and ld.bfd - missing X11R6

So I ran the last bulk build with the following diff in it:


Index: gnome.port.mk
===================================================================
RCS file: /cvs/ports/x11/gnome/gnome.port.mk,v
retrieving revision 1.115
diff -u -p -r1.115 gnome.port.mk
--- gnome.port.mk 1 Dec 2018 13:04:41 -0000 1.115
+++ gnome.port.mk 7 Dec 2019 19:29:33 -0000
@@ -147,7 +147,8 @@ MODGNOME_RUN_DEPENDS += x11/gnome/yelp
# If a port needs extra CPPFLAGS, they can just set MODGNOME_CPPFLAGS
# to the desired value, like -I${X11BASE}/include
_MODGNOME_cppflags ?= CPPFLAGS="${MODGNOME_CPPFLAGS} -I${LOCALBASE}/include"
-_MODGNOME_ldflags ?= LDFLAGS="${MODGNOME_LDFLAGS} -L${LOCALBASE}/lib"
+_MODGNOME_ldflags ?= LDFLAGS="${MODGNOME_LDFLAGS} -L${LOCALBASE}/lib \
+ -L${X11BASE}/lib"

.if ${CONFIGURE_STYLE:Mgnu} || ${CONFIGURE_STYLE:Msimple} || \
${CONFIGURE_STYLE:Mcmake} || ${CONFIGURE_STYLE:Mmeson}

All it does is add /usr/X11R6/lib to the places to check for libraries.
This fixed x11/gnome/libgweather and almost certainly others.

So this is probably not the place to make this change. I don't know
enough about how the default library paths are set for the two linkers.
libgweather and company seem to compile just fine on base-clang
architectures though.

Any pointers for a better place? I'm guessing things outside of gnome
could use the inclusion of -L${X11BASE}/lib

--Kurt

No comments:

Post a Comment