diff options
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index bbe61009..f1445800 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the lib subdirectory of GNU libunistring. -## Copyright (C) 2009-2024 Free Software Foundation, Inc. +## Copyright (C) 2009-2025 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -239,8 +239,10 @@ EXTRA_DIST += libunistring.sym declared.sh # Tell the mingw or Cygwin linker which symbols to export. if WOE32DLL libunistring_la_SOURCES += ../woe32dll/unistring-exports.c +if !PLATFORM_IS_MSVC libunistring_la_LDFLAGS += -Wl,--export-all-symbols endif +endif # Hide undesired symbols that are defined by libunistring_la_SOURCES or # libunistring_la_LIBADD from the global namespace, by prefixing them with @@ -265,9 +267,9 @@ config.h: $(BUILT_SOURCES) $(srcdir)/libunistring.sym case $$f in \ *.res.lo ) ;; \ *.c | *.$(OBJEXT) | *.lo ) \ - sf=`echo "$$f" | sed -e 's,\\.[^.]*$$,,'`.c; \ + sf=`echo "$$f" | sed -e 's,^libunistring_la-,,' -e 's,\\.[^.]*$$,,'`.c; \ test -f $$sf || sf=$(srcdir)/$$sf; \ - of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \ + of=`echo "$$f" | sed -e 's,^.*/,,' -e 's,^libunistring_la-,,' -e 's,\\.[^.]*$$,,'`.$(OBJEXT); \ echo "$(COMPILE) -c $$sf" 1>&6; \ $(COMPILE) -c $$sf || { rm -f config.h; exit 1; }; \ sh ./exported.sh $$of 1>&5; \ @@ -311,7 +313,7 @@ AM_CPPFLAGS += -DDEPENDS_ON_LIBICONV=1 # Libtool's library version information for libunistring. # See the libtool documentation, section "Library interface versions". LTV_CURRENT=7 -LTV_REVISION=0 +LTV_REVISION=1 LTV_AGE=2 # How to build libunistring.la. |