summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-12 00:46:22 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-12 00:46:22 +0200
commit0f2bffe3be7647090da40e05c207277202a68aad (patch)
tree7a431fae0a641f85302fe675d67dbc77391dd44d /Makefile.am
parent0a13d919cdd8aab4940e7f8db8bdf0c2625bcafb (diff)
downloadgmp-0f2bffe3be7647090da40e05c207277202a68aad.tar.gz
Add a comment on -lm for libgmp_la_LIBADD.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 632e72336..e40dbaf6f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -106,6 +106,10 @@ MPBSD_OBJECTS = mpbsd/add.lo mpbsd/mdiv.lo mpbsd/move.lo mpbsd/powm.lo \
mpbsd/pow_ui.lo mpbsd/sdiv.lo mpbsd/sqrtrem.lo mpbsd/xtom.lo
+# -lgmp needs -lm for floor() and sqrt() used by mpn/generic/sqrtrem.c.
+# Some compilers (eg. gcc on i386) might in-line these, making -lm
+# unnecessary, but we don't try to detect that.
+#
libgmp_la_SOURCES = assert.c errno.c memory.c mp_set_fns.c mp_clz_tab.c \
rand.c randclr.c randlc.c randlc2x.c randraw.c randsd.c randsdui.c \
version.c stack-alloc.c mp_bpl.c extract-dbl.c insert-dbl.c
@@ -116,7 +120,6 @@ libgmp_la_DEPENDENCIES = \
libgmp_la_LDFLAGS = -release @VERSION@
-
if WANT_MPBSD
MPBSD_HEADERS_OPTION = mp.h
MPBSD_LTLIBRARIES_OPTION = libmp.la