aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam/static_libpam
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2017-03-08 08:25:26 +0000
committerBrooks Davis <brooks@FreeBSD.org>2017-03-08 08:25:26 +0000
commit0b25287b33f9b6c570f0fc72e85dc9524aba16cc (patch)
tree1bca2df4d46bef0b5c4c4398cdcce539a4efee38 /lib/libpam/static_libpam
parent350e622703f509ccfbd9434ebc0be3682d3224f9 (diff)
downloadsrc-0b25287b33f9b6c570f0fc72e85dc9524aba16cc.tar.gz
src-0b25287b33f9b6c570f0fc72e85dc9524aba16cc.zip
Use LDFLAGS rather than CFLAGS when linking.
Reviewed by: kan Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9882
Notes
Notes: svn path=/head/; revision=314901
Diffstat (limited to 'lib/libpam/static_libpam')
-rw-r--r--lib/libpam/static_libpam/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/static_libpam/Makefile b/lib/libpam/static_libpam/Makefile
index 9c393386efc6..2a8cc998ac87 100644
--- a/lib/libpam/static_libpam/Makefile
+++ b/lib/libpam/static_libpam/Makefile
@@ -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"