diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 5 |
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 |