1
Goal: Fix bugs in the detection of the GNU ld version, which results in
2
a failure to use linker scripts to limit the set of symbols exported by
5
Author: Steve Langasek <vorlon@debian.org>
7
Upstream status: submitted as bugzilla bug #6147
9
Index: samba-deb/source/configure.in
10
===================================================================
11
--- samba-deb.orig/source/configure.in
12
+++ samba-deb/source/configure.in
15
AC_MSG_CHECKING(GNU ld release version)
17
- ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
18
+ ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*[^0-9\.]\+\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
19
ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
20
ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
23
if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then
24
ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
26
- if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major"=2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
27
+ if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major" = 2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
28
ac_cv_gnu_ld_version_script=yes