Skip to content

Commit da202e9

Browse files
committed
feedback
1 parent f9b2e0a commit da202e9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

configure.ac

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ dnl supports it. This can help reduce the binary size and startup time.
206206
AX_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
209212
case $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
;;
235241
esac
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-
245243
dnl Detect musl libc
246244
AC_MSG_CHECKING([whether we are using musl libc])
247245
if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1

0 commit comments

Comments
 (0)