Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk use -rpath-link rather than -R when linking objects...
details: https://anonhg.NetBSD.org/src/rev/43fd59f7d836
branches: trunk
changeset: 484870:43fd59f7d836
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Apr 14 03:36:13 2000 +0000
description:
use -rpath-link rather than -R when linking objects using a DESTDIR.
this replaces the previous change as that ended up adding
$DESTDIR/usr/lib to the runtime path of every binary created, which
is bogus and dangerous.
diffstat:
share/mk/bsd.prog.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e125b987e35e -r 43fd59f7d836 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Fri Apr 14 02:53:54 2000 +0000
+++ b/share/mk/bsd.prog.mk Fri Apr 14 03:36:13 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.111 2000/03/25 23:15:13 mycroft Exp $
+# $NetBSD: bsd.prog.mk,v 1.112 2000/04/14 03:36:13 mrg Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__)
@@ -104,7 +104,7 @@
.if defined(DESTDIR)
${PROG}: ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
- ${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${DESTDIR}/usr/lib -R${DESTDIR}/usr/lib ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -lgcc -lc -lgcc ${LIBCRTEND}
+ ${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${DESTDIR}/usr/lib -Wl,-rpath-link,${DESTDIR}/usr/lib ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -lgcc -lc -lgcc ${LIBCRTEND}
.else
Home |
Main Index |
Thread Index |
Old Index