summaryrefslogtreecommitdiff
path: root/libstdc++
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-18 18:57:55 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-18 18:57:55 +0000
commit87fbb557ba46690eb61906188e56f119c00079e7 (patch)
treeb8c2627f95c332efeaab153c57a329fbdb22e207 /libstdc++
parentd61726bc08c13097be02f2e7cb96932bfd821973 (diff)
downloadgcc-87fbb557ba46690eb61906188e56f119c00079e7.tar.gz
* configure.in: Handle OpenBSD with and without threads.
* config/openbsd.ml: New file. * config/openbsd.mt: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25291 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/ChangeLog6
-rw-r--r--libstdc++/config/openbsd.ml7
-rw-r--r--libstdc++/config/openbsd.mt3
-rw-r--r--libstdc++/configure.in5
4 files changed, 21 insertions, 0 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog
index a799dafcc52..e537abacfad 100644
--- a/libstdc++/ChangeLog
+++ b/libstdc++/ChangeLog
@@ -1,3 +1,9 @@
+Thu Feb 18 19:53:17 1999 Marc Espie <espie@cvs.openbsd.org>
+
+ * configure.in: Handle OpenBSD with and without threads.
+ * config/openbsd.ml: New file.
+ * config/openbsd.mt: New file.
+
1999-01-28 Baron Roberts <baron@sgi.com>
* string: Uncomment wstring declaration.
diff --git a/libstdc++/config/openbsd.ml b/libstdc++/config/openbsd.ml
new file mode 100644
index 00000000000..0d278f6b0b0
--- /dev/null
+++ b/libstdc++/config/openbsd.ml
@@ -0,0 +1,7 @@
+# Base shared lib for OpenBSD i386
+
+LIBS = $(ARLIB) $(SHLIB) $(SHLINK) mshlink
+SHFLAGS = -nostdlib -Wl,-Bshareable,-Bforcearchive
+SHDEPS = -lm
+DEPLIBS = ../$(SHLIB)
+
diff --git a/libstdc++/config/openbsd.mt b/libstdc++/config/openbsd.mt
new file mode 100644
index 00000000000..29da11cf454
--- /dev/null
+++ b/libstdc++/config/openbsd.mt
@@ -0,0 +1,3 @@
+# tell we want the mt-safe version
+MT_CFLAGS = -D_IO_MTSAFE_IO -D_PTHREADS
+
diff --git a/libstdc++/configure.in b/libstdc++/configure.in
index c1378b87c23..9b89ece4f91 100644
--- a/libstdc++/configure.in
+++ b/libstdc++/configure.in
@@ -63,6 +63,7 @@ if [ "${shared}" = "yes" ]; then
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
*-*-linux*aout*) ;;
*-*-linux*) frags="${frags} linux.ml" ;;
+ *-*-openbsd*) frags="${frags} openbsd.ml" ;;
*-*-sysv[45]*|*-*-udk*) frags="${frags} elf.ml" ;;
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
*-*-sunos4*) frags="${frags} sunos4.ml" ;;
@@ -76,6 +77,10 @@ case "${target}" in
alpha*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
powerpc*-*-linux-gnulibc1) frags="${frags} linux.mt" ;;
*-*-linux-gnu) frags="${frags} linux.mt" ;;
+ *-*-openbsd*)
+ case "x${enable_threads}" in
+ xyes|xposix) frags="${frags} openbsd.mt" ;;
+ esac;;
m68k-motorola-sysv) frags="${frags} delta.mt" ;;
*-*-solaris*)
case "x${enable_threads}" in