svn commit: r337476 - stable/11/lib/libpam/static_libpam

Bryan Drewery bdrewery at FreeBSD.org
Wed Aug 8 18:03:58 UTC 2018


Author: bdrewery
Date: Wed Aug  8 18:03:57 2018
New Revision: 337476
URL: https://svnweb.freebsd.org/changeset/base/337476

Log:
  MFC r310789,r314901:
  
    r310789:
      Use compiler driver to build relocatable object
    r314901:
      Use LDFLAGS rather than CFLAGS when linking.

Modified:
  stable/11/lib/libpam/static_libpam/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libpam/static_libpam/Makefile
==============================================================================
--- stable/11/lib/libpam/static_libpam/Makefile	Wed Aug  8 17:59:33 2018	(r337475)
+++ stable/11/lib/libpam/static_libpam/Makefile	Wed Aug  8 18:03:57 2018	(r337476)
@@ -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 ${LDFLAGS} -o ${.TARGET} -r -Wl,--whole-archive ${.ALLSRC}
 
 .include "${.CURDIR:H}/libpam/Makefile"


More information about the svn-src-stable-11 mailing list