explicitly link in gmp in applications that reference gmp symbols
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 15 May 2011 18:12:35 +0000 (20:12 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 15 May 2011 21:37:37 +0000 (23:37 +0200)
They do this through the use of isl_int_* macros.
Not explicitly linking to gmp creates problems with some combinations
of libtool and ld, notably those that come with recent debians.

Reported-by: Albert Cohen <Albert.Cohen@inria.fr>
Tested-by: Albert Cohen <Albert.Cohen@inria.fr>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am

index 475a4f7..9c4b4c7 100644 (file)
@@ -128,7 +128,8 @@ libisl_la_LDFLAGS = -version-info @versioninfo@ \
 libisl_la_CPPFLAGS = $(INCLUDES) @PIPLIB_CPPFLAGS@ @GMP_CPPFLAGS@
 
 isl_test_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
-isl_test_LDADD = libisl.la
+isl_test_LDFLAGS = @GMP_LDFLAGS@
+isl_test_LDADD = libisl.la -lgmp
 
 isl_polyhedron_sample_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
 isl_polyhedron_sample_LDADD = libisl.la
@@ -136,17 +137,20 @@ isl_polyhedron_sample_SOURCES = \
        polyhedron_sample.c
 
 isl_pip_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
-isl_pip_LDADD = libisl.la
+isl_pip_LDFLAGS = @GMP_LDFLAGS@
+isl_pip_LDADD = libisl.la -lgmp
 isl_pip_SOURCES = \
        pip.c
 
 isl_bound_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
-isl_bound_LDADD = libisl.la
+isl_bound_LDFLAGS = @GMP_LDFLAGS@
+isl_bound_LDADD = libisl.la -lgmp
 isl_bound_SOURCES = \
        bound.c
 
 isl_polyhedron_minimize_CPPFLAGS = $(INCLUDES) @GMP_CPPFLAGS@
-isl_polyhedron_minimize_LDADD = libisl.la
+isl_polyhedron_minimize_LDFLAGS = @GMP_LDFLAGS@
+isl_polyhedron_minimize_LDADD = libisl.la -lgmp
 isl_polyhedron_minimize_SOURCES = \
        polyhedron_minimize.c