* configure.in (target frags): Add *-linux-gnu.
From-SVN: r17041
This commit is contained in:
parent
b472527b0f
commit
f49b1654d3
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Dec 11 11:20:59 1997 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* configure.in (target frags): Add *-linux-gnu.
|
||||
|
||||
Fri Dec 5 16:22:15 1997 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* streambuf.cc (streambuf::~streambuf): Don't delete _lock
|
||||
|
|
|
@ -64,6 +64,17 @@ case "${target}" in
|
|||
cp ${srcdir}/config/linuxaxp1-libc-lock.h libc-lock.h
|
||||
cp ${srcdir}/config/linuxaxp1-stdio-lock.h stdio-lock.h
|
||||
;;
|
||||
*-linux-gnu)
|
||||
# We have a correct libc-lock.h in glibc 2.1 but not all glibc 2.0.
|
||||
# Create a wrapper if necessary.
|
||||
(echo "#include <bits/libc-lock.h>" | ${CC-cc} -E -) >/dev/null 2>&1 ||
|
||||
{
|
||||
echo "#include_next <libc-lock.h>" > libc-lock.h
|
||||
echo 'asm (".weak _pthread_cleanup_pop_restore");' >> libc-lock.h
|
||||
echo 'asm (".weak _pthread_cleanup_push_defer");' >> libc-lock.h
|
||||
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
for frag in ${frags}; do
|
||||
|
|
Loading…
Add table
Reference in a new issue