Skip to content

Commit

Permalink
Remove possibility to compile with specific glibc
Browse files Browse the repository at this point in the history
Option is broken for its original testing purposes.  Furthermore it
even loading with the target glibc it is somehow still affected by
system's glibc, hence the option is unrealiable.  Therefore let's
remove it.

Signed-off-by: Giuliano Belinassi <[email protected]>
  • Loading branch information
giulianobelinassi committed Dec 19, 2024
1 parent 77551e7 commit 9e83c61
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,6 @@ AC_DEFINE_UNQUOTED([LD_LINUX], ["$_LD_LINUX"],
AM_CONDITIONAL([CPU_X86_64], [test "$_PROC" == "x86_64"])
AM_CONDITIONAL([CPU_PPC64LE], [test "$_PROC" == "powerpc64le"])

# Use the glibc versions installed on path
AC_ARG_WITH([glibc],
AS_HELP_STRING([--with-glibc=GLIBC_PATH],[Use the glibc installed on GLIBC_PATH, where the .so file is present]),
[AC_SUBST([AM_LDFLAGS], ["-Wl,--dynamic-linker=$with_glibc/$_LD_LINUX -Wl,--rpath=$with_glibc/"])],
[])

# Check if -fpatchable-function-entry=$ULP_NOPS_LEN,$RE_NOPS_LEN works
# correctly.
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
Expand All @@ -278,6 +272,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[patchable_works=yes],
[patchable_works=no])

# Fix some problems with the Makefiles expecting a default value for AM_LDFLAGS
AC_SUBST([AM_LDFLAGS], [""])

AS_IF([test "x$patchable_works" == "xno"],
AC_MSG_ERROR(
[The -fpatchable-functions-entry flag of your C compiler does not work correctly]))
Expand Down

0 comments on commit 9e83c61

Please sign in to comment.