mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-17 06:29:30 +00:00
Basilisk II: Skip test for -no-pie flag in macOS
This commit is contained in:
parent
cb67534d28
commit
0118e99764
|
@ -1123,19 +1123,21 @@ AC_TRANSLATE_DEFINE(HAVE_MMAP_VM, "$have_mmap_vm",
|
||||||
|
|
||||||
fi dnl HAVE_MMAP_VM
|
fi dnl HAVE_MMAP_VM
|
||||||
|
|
||||||
dnl Check if we can disable position-independent code
|
if [[ "$OS_TYPE" != "darwin" ]]; then
|
||||||
AC_CACHE_CHECK([whether the compiler supports -no-pie],
|
dnl Check if we can disable position-independent code
|
||||||
ac_cv_no_pie, [
|
AC_CACHE_CHECK([whether the compiler supports -no-pie],
|
||||||
saved_LDFLAGS="$LDFLAGS"
|
ac_cv_no_pie, [
|
||||||
LDFLAGS="$LDFLAGS -no-pie"
|
saved_LDFLAGS="$LDFLAGS"
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM()],[
|
LDFLAGS="$LDFLAGS -no-pie"
|
||||||
ac_cv_no_pie="yes"],[
|
AC_LINK_IFELSE([AC_LANG_PROGRAM()],[
|
||||||
ac_cv_no_pie="no"
|
ac_cv_no_pie="yes"],[
|
||||||
|
ac_cv_no_pie="no"
|
||||||
|
])
|
||||||
|
if [[ "$ac_cv_no_pie" = "no" ]]; then
|
||||||
|
LDFLAGS="$saved_LDFLAGS"
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
if [[ "$ac_cv_no_pie" = "no" ]]; then
|
fi
|
||||||
LDFLAGS="$saved_LDFLAGS"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Check if we can modify the __PAGEZERO segment for use as Low Memory
|
dnl Check if we can modify the __PAGEZERO segment for use as Low Memory
|
||||||
AC_CACHE_CHECK([whether __PAGEZERO can be Low Memory area 0x0000-0x2000],
|
AC_CACHE_CHECK([whether __PAGEZERO can be Low Memory area 0x0000-0x2000],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user