>From 2275f6fdbe687c72c2536c7e47bbc5269b0a89b1 Mon Sep 17 00:00:00 2001 From: Torsten Landschoff Date: Sun, 15 Nov 2009 01:52:37 +0100 Subject: [PATCH 2/5] Take the -no-undefined flag into account on Linux/GCC/GNU ld. Pass -Wl,-z,defs to the linker so that undefined symbols are marked as errors and do not go unnoticed. --- libltdl/m4/libtool.m4 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 1f58a38..c866fec 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -4447,8 +4447,9 @@ _LT_EOF if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z,defs' tmp_addflag= - tmp_sharedflag='-shared' + tmp_sharedflag='-shared${allow_undefined_flag}' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' -- 1.6.5.2