Skip to content

Conversation

devnexen
Copy link
Member

especially linker warning about php binary having an executable stack.

especially linker warning about php binary having an executable stack.
configure.ac Outdated
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
;;
esac

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this works great. I've just tested it. It seems that Haiku handles PT_GNU_STACK differently to other Unix-like systems and it needs this linker flag. Probably something differently configured on it at the moment.

You can also move this few blocks to the top. Here:

diff --git a/configure.ac b/configure.ac
index 2bd6ae26ce6..dd5b9efb1c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -207,6 +207,10 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
                        [CFLAGS="$CFLAGS -fvisibility=hidden"])
 
 case $host_alias in
+dnl ...
+  *haiku*)
+    LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+    ;;
   *solaris*)
     CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
     ;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants