
Module: ppl/ppl Branch: master Commit: c7378097108a1ff8b27bb218b365ea11ada8cafc URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=c7378097108a1...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Sat Mar 28 08:11:24 2009 +0100
Tweak for MinGW. Force the use of the C++ compiler for linking.
---
interfaces/C/tests/Makefile.am | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/interfaces/C/tests/Makefile.am b/interfaces/C/tests/Makefile.am index f880ed7..5137508 100644 --- a/interfaces/C/tests/Makefile.am +++ b/interfaces/C/tests/Makefile.am @@ -33,8 +33,17 @@ AM_CPPFLAGS = \
if GCC
+if HOST_OS_MINGW + +# MinGW's <stdlib.h> cannot be compiled in c89 mode. +AM_CFLAGS = -pedantic -std=gnu89 -Werror + +else !HOST_OS_MINGW + AM_CFLAGS = -pedantic -std=c89 -Werror
+endif !HOST_OS_MINGW + endif GCC
check_LIBRARIES = libppl_c_tests.a @@ -42,10 +51,13 @@ check_LIBRARIES = libppl_c_tests.a libppl_c_tests_a_SOURCES = \ ppl_c_test.cc
+# Dummy C++ source to cause C++ linking. +nodist_EXTRA_libppl_c_tests_a_SOURCES = \ +dummy.cc + LDADD = \ -$(top_builddir)/src/libppl.la \ -$(top_builddir)/interfaces/C/libppl_c.la \ libppl_c_tests.a \ +$(top_builddir)/interfaces/C/libppl_c.la \ @extra_libraries@
NORMAL_TESTS = \