Subject: Re: different behaviour of system cc and TOOLDIR/cc
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 06/10/2003 13:30:43
On Tue, 10 Jun 2003, Matthias Drochner wrote:
: Thanks, seems to work now...
:
: So would you call the appended patch a step into the right direction?
Other than the fact that it's not a unified diff <wide grin>, yes, it looks
OK. (With the caveat that I haven't tested it to work properly, of course.)
A few nits mainly for cleanliness:
=====
! SHLIB_SHFLAGS= -Wl,-soname -Wl,lib${LIB}.so.${SHLIB_SOVERSION}
-Wl allows multiple arguments separated by ",", so this could simply be:
! SHLIB_SHFLAGS= -Wl,-soname,lib${LIB}.so.${SHLIB_SOVERSION}
=====
! $(CC) -v -Wl,-nostdlib -B${DESTDIR}/usr/lib/ \
Well, you don't want -v when committed, but you probably knew that.
=====
! -Wl,-R${_LIBSODIR} -Wl,-R${LIBDIR}
These need not be -Wl,-R - just
! -R${_LIBSODIR} -R${LIBDIR}
would suffice. (NetBSD's in-tree gcc, and gcc3 for NetBSD targets, accepts
-R directly. The "-Wl,-R" hack was invented for use in pkgsrc so that older
compilers--such as the one for a.out--could use it.)
--
-- Todd Vierling <tv@pobox.com>