Skip to content

Commit

Permalink
Merge branch 'rickard/fix-thp-config-test'
Browse files Browse the repository at this point in the history
* rickard/fix-thp-config-test:
  Update configure scripts
  Fix broken THP configure test
  • Loading branch information
rickard-green committed Mar 4, 2024
2 parents 6c1375c + 8fb666b commit de026cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions erts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -24823,7 +24823,7 @@ printf "%s\n" "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
LDFLAGS=$saved_LDFLAGS
LDFLAGS="$saved_LDFLAGS"
for flag in "-Wl,-z,common-page-size=2097152" "-Wl,-z,max-page-size=2097152"
do
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add $flag to LDFLAGS" >&5
Expand All @@ -24846,7 +24846,7 @@ then :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
LDFLAGS="$save_LDFLAGS $flag"
LDFLAGS="$saved_LDFLAGS $flag"

else $as_nop

Expand Down
4 changes: 2 additions & 2 deletions erts/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3084,7 +3084,7 @@ AS_IF([test "x$erts_cv_linux_thp" = "xyes"],
unused_command_line_argument=""
]
)
LDFLAGS=$saved_LDFLAGS
LDFLAGS="$saved_LDFLAGS"
for flag in "-Wl,-z,common-page-size=2097152" "-Wl,-z,max-page-size=2097152"
do
AC_MSG_CHECKING([if we can add $flag to LDFLAGS])
Expand All @@ -3093,7 +3093,7 @@ AS_IF([test "x$erts_cv_linux_thp" = "xyes"],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[return 0;]])],
[
AC_MSG_RESULT([yes])
LDFLAGS="$save_LDFLAGS $flag"
LDFLAGS="$saved_LDFLAGS $flag"
],
[
AC_MSG_RESULT([no])
Expand Down

0 comments on commit de026cb

Please sign in to comment.