diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-03-08 17:55:49 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-03-08 17:55:49 +0100 |
commit | ed61c3b7b5ebdde30f4d887972876b210fae2372 (patch) | |
tree | bdb785d041db8a261e79c396ba60fb6d2b72f29e /sysdeps/pthread/funlockfile.c | |
parent | 988f0e4cbda1673dfaa47051b8a64d90a89ea2ce (diff) |
Fix static linking of programs using pthread
The libc-provided lockfile functions must be overriden by the libpthread
ones.
* sysdeps/pthread/flockfile.c (_IO_flockfile): Make alias weak.
* sysdeps/pthread/ftrylockfile.c (_IO_ftrylockfile): Likewise.
* sysdeps/pthread/funlockfile.c (_IO_funlockfile): Likewise.
Diffstat (limited to 'sysdeps/pthread/funlockfile.c')
-rw-r--r-- | sysdeps/pthread/funlockfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/funlockfile.c b/sysdeps/pthread/funlockfile.c index 59fa40e..65201ed 100644 --- a/sysdeps/pthread/funlockfile.c +++ b/sysdeps/pthread/funlockfile.c @@ -30,5 +30,5 @@ __funlockfile (stream) __libc_ptf_call (_IO_funlockfile, (stream), 0); #endif } -strong_alias (__funlockfile, _IO_funlockfile) +weak_alias (__funlockfile, _IO_funlockfile) weak_alias (__funlockfile, funlockfile) |