Skip to content

Commit

Permalink
Move -ljemalloc to DLDLIBS [Bug #18391]
Browse files Browse the repository at this point in the history
Set the alternative memory management library only as a platform
specific library, without other libraries.
  • Loading branch information
nobu committed Dec 7, 2021
1 parent 91e9d27 commit ec878da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,7 @@ AS_IF([test "x$with_jemalloc" != xno],[
[-l*], [
set dummy $with_jemalloc
LIBS="$2 $LIBS"
DLDLIBS="$2${DLDLIBS:+ $DLDLIBS}" # probably needed also in extension libraries
])
AS_CASE(["$with_jemalloc"],
[*" with mangle"], [
Expand Down Expand Up @@ -3353,7 +3354,7 @@ AS_CASE(["$target_os"],
: ${DLDLIBS=""}
],
[
DLDLIBS="$DLDLIBS -lc"
DLDLIBS="${DLDLIBS:+$DLDLIBS }-lc"
])

AC_ARG_ENABLE(multiarch,
Expand Down Expand Up @@ -3898,7 +3899,6 @@ AS_IF([test -n "${LIBS}"], [
MAINFLAGS=`echo " $MAINLIBS " | sed "s|$libspat"'||;s/^ *//;s/ *$//'`
])
LIBRUBYARG_STATIC="${LIBRUBYARG_STATIC} \$(MAINLIBS)"
LIBRUBYARG_SHARED="${LIBRUBYARG_SHARED} \$(MAINLIBS)"
CPPFLAGS="$CPPFLAGS "'$(DEFS)'
test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}'
AS_IF([test -n "${cflags+set}"], [
Expand Down

0 comments on commit ec878da

Please sign in to comment.