Use LDFLAGS rather than CFLAGS when linking.

Reviewed by:	kan
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D9882
This commit is contained in:
Brooks Davis 2017-03-08 08:25:26 +00:00
parent 350e622703
commit 0b25287b33

View File

@ -64,6 +64,6 @@ CLEANFILES+= openpam_static.o \
openpam_static_modules.o
openpam_static_modules.o: openpam_static.o ${STATIC_MODULES}
${CC} -nostdlib ${CFLAGS} -o ${.TARGET} -r -Wl,--whole-archive ${.ALLSRC}
${CC} -nostdlib ${LDFLAGS} -o ${.TARGET} -r -Wl,--whole-archive ${.ALLSRC}
.include "${.CURDIR:H}/libpam/Makefile"