Explicitly pass down -r as linker option.

This commit is contained in:
joerg 2010-12-08 02:07:25 +00:00
parent 3b7d8067b3
commit 72183148bb

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2009/12/14 01:18:20 matt Exp $
# $NetBSD: Makefile,v 1.10 2010/12/08 02:07:25 joerg Exp $
#-
# Copyright (c) 1998 Juniper Networks, Inc.
# All rights reserved.
@ -184,7 +184,7 @@ STATIC_MODULE_LIBS:= ${STATIC_MODULE_LIBS} ${MODOBJDIR}/lib${MOD}.a
# XXX Using ${.ALLSRC} in the ld command causes openpam_static.c to be
# XXX used. Why??!! --thorpej
openpam_static_modules.o: openpam_static.o ${STATIC_MODULE_LIBS}
${CC} ${LDFLAGS} -nostdlib -o ${.TARGET} -r -Wl,--whole-archive \
${CC} ${LDFLAGS} -nostdlib -o ${.TARGET} -Wl,-r -Wl,--whole-archive \
openpam_static.o ${STATIC_MODULE_LIBS}
.include <bsd.lib.mk>