decosf* )
ld_call_shared="-call_shared"
;;
- darwin )
+ darwin* )
AC_DEFINE([DLSYM_NEEDS_UNDERSCORE], [1], [Description here!])
+ if test "x$have_ld_no_pie" != "x"; then
+ SXE_PREPEND_LINKER_FLAG([-no_pie], [ld_switch_site])
+ fi
;;
esac
else dnl "$with_dynamic" = "no"
decosf* )
ld_call_shared="-non_shared"
;;
+ darwin* )
+ AC_DEFINE([DLSYM_NEEDS_UNDERSCORE], [1], [Description here!])
+ if test "x$have_ld_no_pie" != "x"; then
+ SXE_PREPEND_LINKER_FLAG([-no_pie], [ld_switch_site])
+ fi
+ ;;
esac
fi
SXE_RESTORE_LIBS
])dnl SXE_LD_EXPORT_DYNAMIC
+
+AC_DEFUN([SXE_LD_NO_PIE], [dnl
+ AC_MSG_CHECKING([if linker understands -no_pie])
+ SXE_DUMP_LIBS
+ LDFLAGS="-no_pie $LDFLAGS"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <stdlib.h>
+]],[[
+return 0;
+]])], [AC_MSG_RESULT([yes])
+ have_ld_no_pie="yes"], [
+ AC_MSG_RESULT([no])
+ have_ld_no_pie="no"])
+ SXE_RESTORE_LIBS
+])dnl SXE_LD_NO_PIE
+
dnl SXE_RILLY_COMPUTE_LD_RUN_PATH()
AC_DEFUN([SXE_RILLY_COMPUTE_LD_RUN_PATH], [dnl
if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
dnl in case we need the modules
SXE_LD_EXPORT_DYNAMIC
+ dnl in case compiler issues PIE by default which breaks pdump
+ SXE_LD_NO_PIE
## check whether CC reacts to `extern inline' gnu89 inline declarations
## with a warning