summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-03-11 15:58:02 +0000
committerBruno Haible <bruno@clisp.org>2001-03-11 15:58:02 +0000
commitb02ecb52eddcaea9a52b42c2218091658c10a392 (patch)
treeeb8456f71dbc9be12436487564b246ca7fb8fee8
parentf89e8f89ae77957d018fb0029e072a0a5d33e7f5 (diff)
downloadexternal_gettext-b02ecb52eddcaea9a52b42c2218091658c10a392.zip
external_gettext-b02ecb52eddcaea9a52b42c2218091658c10a392.tar.gz
external_gettext-b02ecb52eddcaea9a52b42c2218091658c10a392.tar.bz2
Link libintl correctly: the soname and the parameters passed to libtool.
-rw-r--r--intl/ChangeLog7
-rw-r--r--intl/Makefile.in12
2 files changed, 14 insertions, 5 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index 222d36e..5561e64 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -1,5 +1,12 @@
2001-03-10 Bruno Haible <haible@clisp.cons.org>
+ * Makefile.in (libintl.la): Pass -liconv and flag -no-undefined.
+ Needed on platforms like BeOS.
+
+ * Makefile.in (all-no-yes): Depend on libgnuintl.$la, not libintl.$la.
+ (libgnuintl.a, libgnuintl.la): New targets. Needed for linking
+ ../tests/tstgettext on systems which have gettext() in libintl.so.
+
* localcharset.c (locale_charset): Allow wildcard syntax. Resolve
alias also if codeset is empty.
* config.charset (BeOS): Use wildcard syntax.
diff --git a/intl/Makefile.in b/intl/Makefile.in
index 7b1498d..c14737f 100644
--- a/intl/Makefile.in
+++ b/intl/Makefile.in
@@ -105,19 +105,21 @@ INCLUDES = -I.. -I. -I$(top_srcdir)/intl
all: all-@USE_INCLUDED_LIBINTL@
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
all-no: all-no-@BUILD_INCLUDED_LIBINTL@
-all-no-yes: libintl.$la
+all-no-yes: libgnuintl.$la
all-no-no:
-libintl.a: $(OBJECTS)
+libintl.a libgnuintl.a: $(OBJECTS)
rm -f $@
$(AR) cru $@ $(OBJECTS)
$(RANLIB) $@
-libintl.la: $(OBJECTS)
+libintl.la libgnuintl.la: $(OBJECTS)
$(LIBTOOL) --mode=link \
- $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJECTS) @LIBICONV@ \
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
- -rpath $(libdir)
+ -rpath $(libdir) \
+ -no-undefined
libintl.h: libgnuintl.h
cp $(srcdir)/libgnuintl.h libintl.h