mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
* configure.in: Add -lm' when checking for libgd. * malloc/Makefile ($(objpfx)memusagestat): Add
-lm' during linking.
This commit is contained in:
parent
2bbc70d5da
commit
580ca83f5f
2
configure
vendored
2
configure
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user