Fix static build when configured with --disable-hidden-plt
commit9ac3b5047e6bbea03437d020fab9a728e123445b
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Apr 2013 14:13:56 +0000 (4 19:43 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Apr 2013 14:13:56 +0000 (4 19:43 +0530)
tree60cfab46f5909eed9f35c160abf1c47d40df3294
parent05e166c887612250d461b5fe7c0f0064cd1a0c41
Fix static build when configured with --disable-hidden-plt

Fixes BZ #15337.

Static builds fail with the following warning:

/home/tools/glibc/glibc/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:80:
undefined reference to `__GI___pthread_unwind'

When the source is configured with --disable-hidden-plt.  This is
because the preprocessor conditional in cancellation.S only checks if
the build is for SHARED, whereas hidden_def is defined appropriately
only for a SHARED build that will have symbol versioning *and* hidden
defs are enabled.  The last case is false here.
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S