From 3410bf8eed7a1c20e175ef79968723f12fd27e1f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 14 Feb 2005 11:02:54 +0000 Subject: [PATCH] Link the library with the C compiler if it doesn't succeed with the C++ compiler. --- gettext-runtime/libasprintf/ChangeLog | 4 ++++ gettext-runtime/libasprintf/Makefile.am | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index 966655e2b..f03e7a0a6 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -1,3 +1,7 @@ +2005-02-13 Bruno Haible + + * Makefile.am (libasprintf.la): New rule. Needed for BeOS. + 2005-02-12 Bruno Haible * Makefile.msvc (install): Update for 2004-01-18 change. diff --git a/gettext-runtime/libasprintf/Makefile.am b/gettext-runtime/libasprintf/Makefile.am index 386c4148e..7a0bb4361 100644 --- a/gettext-runtime/libasprintf/Makefile.am +++ b/gettext-runtime/libasprintf/Makefile.am @@ -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 -- 2.47.2