]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Link the library with the C compiler if it doesn't succeed with the
authorBruno Haible <bruno@clisp.org>
Mon, 14 Feb 2005 11:02:54 +0000 (11:02 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:15 +0000 (12:12 +0200)
C++ compiler.

gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/Makefile.am

index 966655e2b138e0327f88612f59c06c721bb9658f..f03e7a0a682dbe8df37fd9f19dac8f02f980179d 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-13  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am (libasprintf.la): New rule. Needed for BeOS.
+
 2005-02-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.msvc (install): Update for 2004-01-18 change.
index 386c4148e01b09250e3723db79bb1f5bdd2d34ad..7a0bb4361a275dab6d73c57c1f88acb61f5b630c 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gettext-runtime/libasprintf subdirectory of GNU gettext
-## Copyright (C) 2002-2004 Free Software Foundation, Inc.
+## Copyright (C) 2002-2005 Free Software Foundation, Inc.
 ##
 ## This program is free software; you can redistribute it and/or modify it
 ## under the terms of the GNU Library General Public License as published
@@ -59,6 +59,14 @@ lib-asprintf.lo: $(lib_asprintf_EXTRASOURCES)
 EXTRA_DIST += $(lib_asprintf_EXTRASOURCES)
 
 
+# How to build libasprintf.
+# With libtool 1.5.14, on some platforms, like BeOS, "libtool --tag=CXX" fails
+# to create a shared library, however "libtool --tag=CC" succeeds.
+libasprintf.la: $(libasprintf_la_OBJECTS) $(libasprintf_la_DEPENDENCIES)
+       $(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \
+       $(LINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS)
+
+
 # >>> gnulib module alloca.
 EXTRA_DIST += alloca_.h