From 372d94b6ba73d85b2c63c70e873a4914bbe9dbad Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 7 Jul 2021 10:35:15 +0900 Subject: [PATCH] Shared libruby also needs MAINLIBS for jemalloc --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 78a0662ed2..d018e8a6f4 100644 --- a/configure.ac +++ b/configure.ac @@ -3869,6 +3869,7 @@ 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}"], [