/usr/ports/Mk/bsd.gcc.mk

Fred Woods fred.woods at mcnhealthcare.com
Sun Jan 4 00:39:35 UTC 2015


Who should I talk to regarding a change to /usr/ports/Mk/bsd.gcc.mk ?

Using FreeBSD 9.3 with latest ports tree.

Line 164 of bsd.gcc.mk reads:
LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME}
Think it should read:
LDFLAGS:= -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME} ${LDFLAGS}

Issue was found building freerdp.
During link phase the software was linking with /usr/lib/libstdc++.so.6,
which was older than gcc 4.8, and missing some symbols related to wide
character support.

LDFLAGS includes an rpath for /usr/lib by the time bsd.gcc.mk is evaluated,
so that rpath is being searched before the /usr/local/lib/gcc## path.


More information about the freebsd-ports mailing list