summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-02-06 18:42:51 +0100
committerWerner Koch <wk@gnupg.org>2020-02-06 18:42:51 +0100
commit6e4b5ca624cb7f771c8dd1f12cbad851a5f0d782 (patch)
tree975521d3bc01b3875cec4f894a5c2d97fd6bd89c
parentd1e4b4b001b3fd34b91403f880a42c4a474cdb83 (diff)
downloadlibgpg-error-6e4b5ca624cb7f771c8dd1f12cbad851a5f0d782.tar.gz
build: Always pass -no-undefined to libtool.
* src/Makefile.am: Remove no_undefined macro. -- This helps to build on Cygwin and does the right thing anyway because we do not have any dependencies in gpgrt. Thanks to Michael Haubenwaller to explain this and propose a patch. GnuPG-bug-id: 4474 Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--src/Makefile.am4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8967abf..9303954 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -138,7 +138,6 @@ SUFFIXES = .rc .lo
$(LTRCCOMPILE) -i "$<" -o "$@"
gpg_error_res = versioninfo.lo
-no_undefined = -no-undefined
export_symbols = -export-symbols gpg-error.def
# i686-w64-mingw32.gcc version 4.9.1 takes the long long helper
# functions from libgcc_s_sjlj-1.dll and not from a static libgcc. As
@@ -168,7 +167,6 @@ else
#
arch_sources = posix-lock.c posix-lock-obj.h posix-thread.c spawn-posix.c
gpg_error_res =
-no_undefined =
export_symbols =
extra_ltoptions =
@@ -190,7 +188,7 @@ else
endif
libgpg_error_la_LDFLAGS = \
- $(no_undefined) $(export_symbols) $(libgpg_error_vers_opt) \
+ -no-undefined $(export_symbols) $(libgpg_error_vers_opt) \
$(extra_ltoptions) -version-info \
@LIBGPG_ERROR_LT_CURRENT@:@LIBGPG_ERROR_LT_REVISION@:@LIBGPG_ERROR_LT_AGE@