musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/internal/version.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015年11月12日 16:13:52 -0500
committerRich Felker <dalias@aerifal.cx>2015年11月12日 16:13:52 -0500
commit9e0a317d8c699278c9c8e2a829744ea098548416 (patch)
tree0ee7fdd6f198c5022e813dbd0dc0bf1672df7f16 /src/internal/version.c
parentd56460c939c94a6c547abe8238f442b8de10bfbd (diff)
downloadmusl-9e0a317d8c699278c9c8e2a829744ea098548416.tar.gz
remove use of SHARED macro in dynamic linker version reporting
also fix visibility of the glue function used.
Diffstat (limited to 'src/internal/version.c')
-rw-r--r--src/internal/version.c 5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/internal/version.c b/src/internal/version.c
index 16554ba2..dc044ec4 100644
--- a/src/internal/version.c
+++ b/src/internal/version.c
@@ -1,12 +1,9 @@
-#ifdef SHARED
-
#include "version.h"
static const char version[] = VERSION;
+__attribute__((__visibility__("hidden")))
const char *__libc_get_version()
{
return version;
}
-
-#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月29日 08:51:03 +0000

AltStyle によって変換されたページ (->オリジナル) /