GCC 3.4 doesn't include a #pragma weak reference, if the symbol
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 1 Feb 2005 22:35:19 +0000 (22:35 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 1 Feb 2005 22:35:19 +0000 (22:35 +0000)
commit5dd49d16652b612c7b59132773af90f28f450fdf
tree99e36e0878ea9b6894a62c521da309eecfd634cc
parentdae98e1894ca6ee48aacbdf8fadf8c74d17e8cf3
GCC 3.4 doesn't include a #pragma weak reference, if the symbol
doesn't exist anyway. This broke the build obviously.
Change the places in libc which used the pragma to use __weak_reference.
lib/libc/gen/_pthread_stubs.c
lib/libc/gen/_spinlock_stub.c
lib/libc/stdio/_flock_stub.c
lib/libc/sys/__error.c