aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
-rw-r--r--malloc/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index a9cea952e6..af45f4f2e7 100755
--- a/configure
+++ b/configure
@@ -3147,7 +3147,7 @@ CFLAGS="$CFLAGS $libgd_include"
old_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $libgd_ldflags"
old_LIBS="$LIBS"
-LIBS="$LIBS -lgd -lpng -lz"
+LIBS="$LIBS -lgd -lpng -lz -lm"
cat > conftest.$ac_ext <<EOF
#line 3153 "configure"
#include "confdefs.h"
diff --git a/configure.in b/configure.in
index ef52035bd5..3bd422e822 100644
--- a/configure.in
+++ b/configure.in
@@ -1243,7 +1243,7 @@ CFLAGS="$CFLAGS $libgd_include"
old_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $libgd_ldflags"
old_LIBS="$LIBS"
-LIBS="$LIBS -lgd -lpng -lz"
+LIBS="$LIBS -lgd -lpng -lz -lm"
AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no)
CFLAGS="$old_CFLAGS"
LDFLAGS="$old_LDFLAGS"
diff --git a/malloc/Makefile b/malloc/Makefile
index 7497908707..7cec63dde4 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -80,7 +80,7 @@ do-memusagestat: $(objpfx)memusagestat
memusagestat-modules = memusagestat
$(objpfx)memusagestat: $(memusagestat-modules:%=$(objpfx)%.o)
- $(LINK.o) -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz
+ $(LINK.o) -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz -lm
include ../Rules