Strong definitions of flockfile, funlockfile, ftrylockfile can conflict
with application symbols when linking statically.
+2018-07-26 Florian Weimer <fweimer@redhat.com>
+
+ * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
+ aliases for symbols not in the implementation namespace.
+
2018-07-25 Carlos O'Donell <carlos@redhat.com>
[BZ #23393]
__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")));