about summary refs log tree commit diff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-13 11:46:36 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-13 11:46:36 +0530
commit0f7d347bd0530562257d7c03c62b8c50d810b655 (patch)
tree361591a5dce3dfcb4ce2efe4a32cf7125bd3f448 /sysdeps/ieee754
parent4f184d30cba4910b955c386ccfdaac42de2a510b (diff)
downloadglibc-0f7d347bd0530562257d7c03c62b8c50d810b655.tar.gz
glibc-0f7d347bd0530562257d7c03c62b8c50d810b655.tar.xz
glibc-0f7d347bd0530562257d7c03c62b8c50d810b655.zip
Make _LIB_VERSION a weak symbol
That way it can live alongside _LIB_VERSION in libieee.a for
statically compiled programs.

Resolves #14582.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/s_lib_version.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/ieee754/s_lib_version.c b/sysdeps/ieee754/s_lib_version.c
index a377ab1f78..7abb3e07ae 100644
--- a/sysdeps/ieee754/s_lib_version.c
+++ b/sysdeps/ieee754/s_lib_version.c
@@ -25,16 +25,17 @@ static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Ex
  * define and initialize _LIB_VERSION
  */
 #ifdef _POSIX_MODE
-_LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
+_LIB_VERSION_TYPE _LIB_VERSION_INTERNAL = _POSIX_;
 #else
 #ifdef _XOPEN_MODE
-_LIB_VERSION_TYPE _LIB_VERSION = _XOPEN_;
+_LIB_VERSION_TYPE _LIB_VERSION_INTERNAL = _XOPEN_;
 #else
 #ifdef _SVID3_MODE
-_LIB_VERSION_TYPE _LIB_VERSION = _SVID_;
+_LIB_VERSION_TYPE _LIB_VERSION_INTERNAL = _SVID_;
 #else					/* default _IEEE_MODE */
-_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
+_LIB_VERSION_TYPE _LIB_VERSION_INTERNAL = _IEEE_;
 #endif
 #endif
 #endif
 
+weak_alias (_LIB_VERSION_INTERNAL, _LIB_VERSION)