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:
parent
350e622703
commit
0b25287b33
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user