Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 08:25:27 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314901 - head/lib/libpam/static_libpam
Message-ID:  <201703080825.v288PRH8034924@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Wed Mar  8 08:25:26 2017
New Revision: 314901
URL: https://svnweb.freebsd.org/changeset/base/314901

Log:
  Use LDFLAGS rather than CFLAGS when linking.
  
  Reviewed by:	kan
  Obtained from:	CheriBSD
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D9882

Modified:
  head/lib/libpam/static_libpam/Makefile

Modified: head/lib/libpam/static_libpam/Makefile
==============================================================================
--- head/lib/libpam/static_libpam/Makefile	Wed Mar  8 08:09:41 2017	(r314900)
+++ head/lib/libpam/static_libpam/Makefile	Wed Mar  8 08:25:26 2017	(r314901)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703080825.v288PRH8034924>