summaryrefslogtreecommitdiff
path: root/gnu/egcs
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs')
-rw-r--r--gnu/egcs/gcc/config/i386/t-openbsd6
-rw-r--r--gnu/egcs/gcc/config/m68k/t-openbsd5
-rw-r--r--gnu/egcs/gcc/configure3
-rw-r--r--gnu/egcs/gcc/configure.in3
4 files changed, 17 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config/i386/t-openbsd b/gnu/egcs/gcc/config/i386/t-openbsd
new file mode 100644
index 00000000000..18304634000
--- /dev/null
+++ b/gnu/egcs/gcc/config/i386/t-openbsd
@@ -0,0 +1,6 @@
+# gdb gets confused if pic code is linked with non pic
+# We cope by building variants of libgcc.
+MULTILIB_OPTIONS = fpic
+MULTILIB_MATCHES=fpic=fPIC
+LIBGCC = stmp-multilib
+INSTALL_LIBGCC = install-multilib
diff --git a/gnu/egcs/gcc/config/m68k/t-openbsd b/gnu/egcs/gcc/config/m68k/t-openbsd
new file mode 100644
index 00000000000..24f9a43b000
--- /dev/null
+++ b/gnu/egcs/gcc/config/m68k/t-openbsd
@@ -0,0 +1,5 @@
+# gdb gets confused if pic code is linked with non pic
+# We cope by building all variants of libgcc.
+MULTILIB_OPTIONS = fpic/fPIC
+LIBGCC = stmp-multilib
+INSTALL_LIBGCC = install-multilib
diff --git a/gnu/egcs/gcc/configure b/gnu/egcs/gcc/configure
index 8505bfbc8d4..e414aa98e48 100644
--- a/gnu/egcs/gcc/configure
+++ b/gnu/egcs/gcc/configure
@@ -3558,6 +3558,8 @@ for machine in $build $host $target; do
use_collect2=yes
;;
i[34567]86-*-openbsd*)
+ # needed to unconfuse gdb
+ tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
# we need collect2 until our bug is fixed...
use_collect2=yes
;;
@@ -4365,6 +4367,7 @@ for machine in $build $host $target; do
use_collect2=yes
;;
m68k*-*-openbsd*)
+ tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
float_format=m68k
# we need collect2 until our bug is fixed...
use_collect2=yes
diff --git a/gnu/egcs/gcc/configure.in b/gnu/egcs/gcc/configure.in
index acd1c61a066..42a97a4d28f 100644
--- a/gnu/egcs/gcc/configure.in
+++ b/gnu/egcs/gcc/configure.in
@@ -1165,6 +1165,8 @@ changequote([,])dnl
changequote(,)dnl
i[34567]86-*-openbsd*)
changequote([,])dnl
+ # needed to unconfuse gdb
+ tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
# we need collect2 until our bug is fixed...
use_collect2=yes
;;
@@ -2038,6 +2040,7 @@ changequote([,])dnl
use_collect2=yes
;;
m68k*-*-openbsd*)
+ tmake_file="t-libc-ok t-openbsd m68k/t-openbsd"
float_format=m68k
# we need collect2 until our bug is fixed...
use_collect2=yes