From cfba5dbb10cc3abde632b46c60c10b2843917035 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 26 Jul 2018 08:34:05 +0200 Subject: htl: Use weak aliases for public symbols Strong definitions of flockfile, funlockfile, ftrylockfile can conflict with application symbols when linking statically. --- htl/lockfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'htl') diff --git a/htl/lockfile.c b/htl/lockfile.c index 7828d47dae..1d0ab88b13 100644 --- a/htl/lockfile.c +++ b/htl/lockfile.c @@ -53,8 +53,8 @@ int _IO_ftrylockfile (FILE *) __attribute__ ((alias ("_cthreads_ftrylockfile"))); void flockfile (FILE *) - __attribute__ ((alias ("_cthreads_flockfile"))); + __attribute__ ((weak, alias ("_cthreads_flockfile"))); void funlockfile (FILE *) - __attribute__ ((alias ("_cthreads_funlockfile"))); + __attribute__ ((weak, alias ("_cthreads_funlockfile"))); int ftrylockfile (FILE *) - __attribute__ ((alias ("_cthreads_ftrylockfile"))); + __attribute__ ((weak, alias ("_cthreads_ftrylockfile"))); -- cgit v1.2.1