File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,13 @@ dnl supports it. This can help reduce the binary size and startup time.
206206AX_CHECK_COMPILE_FLAG ( [ -fvisibility=hidden] ,
207207 [ CFLAGS="$CFLAGS -fvisibility=hidden"] )
208208
209+
210+ dnl to disable executable stack on haiku due
211+ dnl to missing elf .note.GNU-stack part
209212case $host_alias in
213+ *haiku*)
214+ LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
215+ ;;
210216 *solaris*)
211217 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
212218 ;;
@@ -234,14 +240,6 @@ case $host_alias in
234240 ;;
235241esac
236242
237- dnl to disable executable stack on haiku due
238- dnl to missing elf .note.GNU-stack part
239- case $host_alias in
240- *haiku*)
241- LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
242- ;;
243- esac
244-
245243dnl Detect musl libc
246244AC_MSG_CHECKING ( [ whether we are using musl libc] )
247245if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1
You can’t perform that action at this time.
0 commit comments