diff options
author | Ed Maste <emaste@FreeBSD.org> | 2020-06-02 00:46:15 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2020-06-02 00:46:15 +0000 |
commit | 8e1e3e1c5dbea26a9162d76cbf9bbae59703d7cc (patch) | |
tree | 8a32604ddad91fe86b8eeec377cb1fd461792cd5 /share/mk/bsd.prog.mk | |
parent | f45b1312960772485acf4b4c8f35a0cfb4f3dfbf (diff) | |
download | src-test2-8e1e3e1c5dbea26a9162d76cbf9bbae59703d7cc.tar.gz src-test2-8e1e3e1c5dbea26a9162d76cbf9bbae59703d7cc.zip |
Notes
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 87f0606ed8ec..fbd75318a358 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -39,11 +39,14 @@ MK_DEBUG_FILES= no .if ${MK_BIND_NOW} != "no" LDFLAGS+= -Wl,-znow .endif -.if ${MK_PIE} != "no" && (!defined(NO_SHARED) || ${NO_SHARED:tl} == "no") +.if ${MK_PIE} != "no" +# Static PIE is not yet supported/tested. +.if !defined(NO_SHARED) || ${NO_SHARED:tl} == "no" CFLAGS+= -fPIE CXXFLAGS+= -fPIE LDFLAGS+= -pie .endif +.endif .if ${MK_RETPOLINE} != "no" .if ${COMPILER_FEATURES:Mretpoline} && ${LINKER_FEATURES:Mretpoline} CFLAGS+= -mretpoline |