summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-11 18:19:38 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-11 18:19:38 +0000
commit428ec80317f53eb50741d96f98e08c6f5420802f (patch)
treec36ec57b1e7cd3d4a19aa5ab333c1855b40c786f /libio
parent271a849987a2fcc3055bb7bfbf250704e1c7abba (diff)
downloadgcc-428ec80317f53eb50741d96f98e08c6f5420802f.tar.gz
* configure.in (target frags): Add *-linux-gnu.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17041 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r--libio/ChangeLog4
-rw-r--r--libio/configure.in11
2 files changed, 15 insertions, 0 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog
index 3e730b679db..39731537eb6 100644
--- a/libio/ChangeLog
+++ b/libio/ChangeLog
@@ -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
diff --git a/libio/configure.in b/libio/configure.in
index 5de2dc1113b..63a152a90f1 100644
--- a/libio/configure.in
+++ b/libio/configure.in
@@ -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