From: Gary V. Vaughan Date: Mon, 23 Dec 2013 05:58:31 +0000 (+1300) Subject: testsuite: with SunStudio12.x f77, don't fail on system symbols X-Git-Tag: v2.4.2.444~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d285ed54b9b9b307e8fe1a25ba9e624eab93b8d;p=thirdparty%2Flibtool.git testsuite: with SunStudio12.x f77, don't fail on system symbols Modern SunStudio f77 is just a wrapper for f90, which explains why current master fails these test groups with: Undefined first referenced symbol in file __f90_slw_ch .libs/foof2.o __f90_sslw .libs/foof2.o __f90_eslw .libs/foof2.o ld: fatal: symbol referencing errors. No output written to .libs/libfoo2.so.0.0.0 So we allow some undefined symbols in the libraries, which are resolved by the $(FLIBS) added to the final binaries in the tests. This seems like the simpler, and less error inducing solution to me (compared to adding $(FLIBS) to every library LDFLAGS line). * tests/f77demo.at (libfoo_la_LDFLAGS, libfoo2_la_LDFLAGS) (libfoo3_la_LDFLAGS, libmix_la_LDFLAGS): Remove -no-undefined flag. * tests/fcdemo.at: Likewise. Signed-off-by: Gary V. Vaughan --- diff --git a/tests/f77demo.at b/tests/f77demo.at index d30c1c723..46dd395f2 100644 --- a/tests/f77demo.at +++ b/tests/f77demo.at @@ -63,17 +63,13 @@ ACLOCAL_AMFLAGS = -I m4 lib_LTLIBRARIES = libfoo.la libmix.la libfoo2.la libfoo3.la libfoo_la_SOURCES = foof.f -libfoo_la_LDFLAGS = -no-undefined libfoo_la_LIBADD = libfoo2.la libfoo2_la_SOURCES = foof2.f -libfoo2_la_LDFLAGS = -no-undefined libfoo3_la_SOURCES = foof3.f -libfoo3_la_LDFLAGS = -no-undefined libmix_la_SOURCES = foof.f foof2.f fooc.c -libmix_la_LDFLAGS = -no-undefined noinst_HEADERS = foo.h diff --git a/tests/fcdemo.at b/tests/fcdemo.at index ff3976887..0e35899bc 100644 --- a/tests/fcdemo.at +++ b/tests/fcdemo.at @@ -67,17 +67,13 @@ ACLOCAL_AMFLAGS = -I m4 lib_LTLIBRARIES = libfoo.la libmix.la libfoo2.la libfoo3.la libfoo_la_SOURCES = foof.f90 -libfoo_la_LDFLAGS = -no-undefined libfoo_la_LIBADD = libfoo2.la libfoo2_la_SOURCES = foof2.f90 -libfoo2_la_LDFLAGS = -no-undefined libfoo3_la_SOURCES = foof3.f90 -libfoo3_la_LDFLAGS = -no-undefined libmix_la_SOURCES = foof.f90 foof2.f90 fooc.c -libmix_la_LDFLAGS = -no-undefined noinst_HEADERS = foo.h