INN commit: trunk/tests (Makefile)
INN Commit
rra at isc.org
Thu Aug 8 08:32:50 UTC 2013
Date: Thursday, August 8, 2013 @ 01:32:50
Author: iulius
Revision: 9527
test suite: add libm for linking
On some platforms (like AIX), linking with libm is needed as the test
suite uses math functions. Though only lib/confparse-t.c currently
uses is_double()/ok_double(), add libm to the whole test suite.
Updating to the latest release of Russ' C TAP Harness will make it
possible to link with libm only for the relevant tests.
Modified:
trunk/tests/Makefile
----------+
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: Makefile
===================================================================
--- Makefile 2013-08-07 18:37:37 UTC (rev 9526)
+++ Makefile 2013-08-08 08:32:50 UTC (rev 9527)
@@ -6,6 +6,10 @@
RUNTESTS_CFLAGS = -DSOURCE='"$(abs_builddir)/tests"' -DBUILD='"$(abs_builddir)/tests"'
CFLAGS = $(GCFLAGS) $(DB_CPPFLAGS) $(DBM_CPPFLAGS) $(PERL_CPPFLAGS) $(PYTHON_CPPFLAGS) $(SSL_CPPFLAGS) $(SASL_CPPFLAGS) $(KRB5_CPPFLAGS) $(RUNTESTS_CFLAGS) -I.
+## On some platforms, linking with libm is needed as the test suite uses
+## math functions (currently only lib/confparse-t.c).
+LIBM_LDFLAGS = '-lm'
+
## The tests that need to be built. Tests in the form of shell scripts
## or some other form that doesn't require compiling shouldn't be in this
## list. If they need other things compiled, those other things should be
@@ -45,7 +49,7 @@
.c.o: $*.c
$(CC) $(CFLAGS) -c -o $@ $*.c
-LINK = $(LIBTOOLLD) $(CC) $(LDFLAGS) $(DB_LDFLAGS) $(SSL_LDFLAGS) $(SASL_LDFLAGS) $(KRB5_LDFLAGS) -o $@
+LINK = $(LIBTOOLLD) $(CC) $(LDFLAGS) $(LIBM_LDFLAGS) $(DB_LDFLAGS) $(SSL_LDFLAGS) $(SASL_LDFLAGS) $(KRB5_LDFLAGS) -o $@
STORAGEDEPS = $(LIBSTORAGE) $(LIBHIST) $(LIBINN)
STORAGELIBS = $(STORAGEDEPS) $(STORAGE_LIBS)
More information about the inn-committers
mailing list