Skip to contentSkip to conversation

configure: Don't warn about lack of PIE on macOS

PATCH RESEND New Roman Bolshakov 1 participant 1 message Jan 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 configure: Don't warn about lack of PIE on macOS

ld64 is making PIE executables for 10.7 and above by default, as documented in ld(1).

---
 configure | 2 ++
 1 file changed, 2 insertions(+)
configure +2 -0
index 881af4b6be..942e20dfe7 100755
@@ -2157,6 +2157,8 @@ elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then
   CONFIGURE_CFLAGS="-fPIE -DPIE $CONFIGURE_CFLAGS"
   CONFIGURE_LDFLAGS="-pie $CONFIGURE_LDFLAGS"
   pie="yes"
+elif test "$darwin" = "yes"; then
+  pie="yes"
 elif test "$pie" = "yes"; then
   error_exit "PIE not available due to missing toolchain support"
 else
Signature · 1 line
2.29.2