automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1848


From: Peter Rosin
Subject: [Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1848-gb3f34ca
Date: Mon, 13 Feb 2012 20:24:48 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=b3f34caa4a4b9ff6862f3b4f1d45560ea4ffee5f

The branch, master has been updated
       via  b3f34caa4a4b9ff6862f3b4f1d45560ea4ffee5f (commit)
      from  dae8578ed1fbdff7e60e4bb069700182d5ede6a5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b3f34caa4a4b9ff6862f3b4f1d45560ea4ffee5f
Author: Peter Rosin <address@hidden>
Date:   Mon Feb 13 21:21:48 2012 +0100

    tests: increase coverage for depcomp tests
    
    On platforms requiring that no undefined symbols exist in order
    to build shared libraries (e.g. Windows DLLs), you have to
    explicitly declare that the libtool library you are building
    does not actually have any undefined symbols, for libtool to
    even try to build it as a shared library.  Without that
    explicit declaration, libtool falls back to a static library
    only, regardless of any --enable-shared flags etc.
    
    tests/depcomp.sh (Makefile.am): Add -no-undefined if a libtool
    library (.la) is built.
    (src/Makefile.am): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 tests/depcomp.sh |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/tests/depcomp.sh b/tests/depcomp.sh
index a53c0b5..708314f 100755
--- a/tests/depcomp.sh
+++ b/tests/depcomp.sh
@@ -150,7 +150,14 @@ case $depcomp_with_libtool in
   yes)
     po=Plo objext=lo a=la
     normalized_target=libfoo_la
-    LIBPRIMARY=LTLIBRARIES LINKADD=LIBADD
+    # On platforms requiring that no undefined symbols exist in order
+    # to build shared libraries (e.g. Windows DLLs), you have to
+    # explicitly declare that the libtool library you are building
+    # does not actually have any undefined symbols, for libtool to
+    # even try to build it as a shared library.  Without that
+    # explicit declaration, libtool falls back to a static library
+    # only, regardless of any --enable-shared flags etc.
+    LIBPRIMARY=LTLIBRARIES LINKADD=LIBADD NOUNDEF=-no-undefined
     echo lib_LTLIBRARIES = libfoo.la >> Makefile.am
     make_ok ()
     {
@@ -167,7 +174,7 @@ case $depcomp_with_libtool in
   no)
     po=Po objext='$(OBJEXT)' a=a
     normalized_target=foo
-    LIBPRIMARY=LIBRARIES LINKADD=LDADD
+    LIBPRIMARY=LIBRARIES LINKADD=LDADD NOUNDEF=
     echo bin_PROGRAMS = foo >> Makefile.am
     make_ok ()
     {
@@ -185,6 +192,7 @@ SUBDIRS = src
 # We include subfoo only to be sure that the munging in depcomp
 # doesn't remove too much from the object file name.
 ${normalized_target}_SOURCES = foo.c sub/subfoo.c foo.h sub/subfoo.h
+${normalized_target}_LDFLAGS = ${NOUNDEF}
 ${normalized_target}_${LINKADD} = src/libbaz.$a
 
 .PHONY: grep-test
@@ -207,6 +215,7 @@ noinst_${LIBPRIMARY} = libbaz.$a
 # We include sub2foo only to be sure that the munging in depcomp
 # doesn't remove too much from the object file name.
 libbaz_${a}_SOURCES = baz.c sub2/sub2foo.c baz.h sub2/sub2foo.h
+libbaz_${a}_LDFLAGS = ${NOUNDEF}
 END
 
 cat > foo.c <<'END'


hooks/post-receive
-- 
GNU Automake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]