From 9e7bfda285d3fda015bc4085b21331bbd293576c Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 13 Nov 2003 05:56:30 +0000 Subject: [PATCH] Use ${HOST_LN} Fix how hppa gets to -lgcc_pic --- share/mk/bsd.lib.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 24c4ed6f2dc3..7c50c6a5ff83 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.240 2003/11/11 11:43:45 dsl Exp $ +# $NetBSD: bsd.lib.mk,v 1.241 2003/11/13 05:56:30 matt Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -135,7 +135,7 @@ CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS} APICFLAGS?= -k # XXX libraries often need the millicode functions in libgcc.a, # so we have to work around the -nostdlib: -LDADD+= `${CC} -print-libgcc-file-name` +LDADD+= -L${_GCC_LIBGCCDIR} -lgcc_pic .else @@ -434,9 +434,9 @@ lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOLIB} ${DPADD} \ # We don't use INSTALL_SYMLINK here because this is just # happening inside the build directory/objdir. XXX Why does # this spend so much effort on libraries that aren't live??? XXX - ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp + ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.${SHLIB_MAJOR}.tmp mv -f lib${LIB}.so.${SHLIB_MAJOR}.tmp lib${LIB}.so.${SHLIB_MAJOR} - ln -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp + ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp mv -f lib${LIB}.so.tmp lib${LIB}.so .endif