aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2016-12-29 21:30:52 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2016-12-29 21:30:52 +0000
commit7ef4651a1687f52a9fd25364a049d0899ce23c1a (patch)
tree5d143187b2be71e75e8c0637c3d9aec71a4cbf10 /lib/libpam
parentf92ce0224a8e4771b124ab458f28f825e1c5b44f (diff)
downloadsrc-7ef4651a1687f52a9fd25364a049d0899ce23c1a.tar.gz
src-7ef4651a1687f52a9fd25364a049d0899ce23c1a.zip
Use compiler driver to build relocatable object
This works better with external toolchains where LD will not necessarily defailt to emulation we want. Compiler driver knows better.
Notes
Notes: svn path=/head/; revision=310789
Diffstat (limited to 'lib/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 f7180e93ef05..ee49517649f9 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}
- ${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}
+ ${CC} -nostdlib ${CFLAGS} -o ${.TARGET} -r -Wl,--whole-archive ${.ALLSRC}
.include "${.CURDIR}/../libpam/Makefile"