Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jan 2015 17:39:33 -0700
From:      Fred Woods <fred.woods@mcnhealthcare.com>
To:        freebsd-ports@freebsd.org
Subject:   /usr/ports/Mk/bsd.gcc.mk
Message-ID:  <CACejS83TO31ucprt=Ck4JHCk4GcbJN94zUotO5st-8b5momgQg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACejS83TO31ucprt=Ck4JHCk4GcbJN94zUotO5st-8b5momgQg>