From b00b985dd2894315727c9b3632c50ad1f978f0bc Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 14 Oct 2000 20:45:43 +0000 Subject: build both -fPIC and -fpic on sparc; espie (not around, and this needs to be in the tree nowish) --- gnu/egcs/gcc/config/sparc/t-openbsd | 5 +++++ gnu/egcs/gcc/configure | 1 + 2 files changed, 6 insertions(+) create mode 100644 gnu/egcs/gcc/config/sparc/t-openbsd diff --git a/gnu/egcs/gcc/config/sparc/t-openbsd b/gnu/egcs/gcc/config/sparc/t-openbsd new file mode 100644 index 00000000000..898a24e079d --- /dev/null +++ b/gnu/egcs/gcc/config/sparc/t-openbsd @@ -0,0 +1,5 @@ +# The native linker doesn't handle linking -fpic code with -fPIC code. Ugh. +# We cope by building both 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 ac59317f25e..8505bfbc8d4 100644 --- a/gnu/egcs/gcc/configure +++ b/gnu/egcs/gcc/configure @@ -5332,6 +5332,7 @@ for machine in $build $host $target; do sparc-*-openbsd*) # we need collect2 until our bug is fixed... use_collect2=yes + tmake_file="t-libc-ok t-openbsd sparc/t-openbsd" ;; sparc-*-bsd*) tm_file=sparc/bsd.h -- cgit v1.2.3