]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
testsuite: with SunStudio12.x f77, don't fail on system symbols
authorGary V. Vaughan <gary@gnu.org>
Mon, 23 Dec 2013 05:58:31 +0000 (18:58 +1300)
committerGary V. Vaughan <gary@gnu.org>
Wed, 1 Jan 2014 23:06:30 +0000 (12:06 +1300)
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 <gary@gnu.org>
tests/f77demo.at
tests/fcdemo.at

index d30c1c72345f4e0c6d8dccbea2bf1d49956d3800..46dd395f24c6ed31fc1dcc3ac7784a704ec9a73c 100644 (file)
@@ -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
 
index ff3976887c8bc65fa31505b904cbe74899249804..0e35899bc7b427fdb80f30bd4cb59388a0d673e3 100644 (file)
@@ -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