SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
devel/jdk/17/patches/patch-make_autoconf_flags-ldflags_m4
Normal file
18
devel/jdk/17/patches/patch-make_autoconf_flags-ldflags_m4
Normal file
|
@ -0,0 +1,18 @@
|
|||
Index: make/autoconf/flags-ldflags.m4
|
||||
--- make/autoconf/flags-ldflags.m4.orig
|
||||
+++ make/autoconf/flags-ldflags.m4
|
||||
@@ -127,12 +127,12 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
|
||||
if test "x$OPENJDK_TARGET_OS_ENV" = xbsd.openbsd; then
|
||||
AC_MSG_CHECKING([if ld requires -z wxneeded])
|
||||
PUSHED_LDFLAGS="$LDFLAGS"
|
||||
- LDFLAGS="$LDFLAGS -Wl,-z,wxneeded"
|
||||
+ LDFLAGS="$LDFLAGS -Wl,-z,wxneeded -Wl,-z,nobtcfi"
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { }]])],
|
||||
[
|
||||
if $READELF -l conftest$ac_exeext | $GREP WXNEED > /dev/null; then
|
||||
AC_MSG_RESULT([yes])
|
||||
- OS_LDFLAGS="-Wl,-z,wxneeded"
|
||||
+ OS_LDFLAGS="-Wl,-z,wxneeded -Wl,-z,nobtcfi"
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue