diff options
author | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:41:13 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | 2015-04-22 10:41:13 +0200 |
commit | 2aa84d43ba19ff173cbf2f63ebd2c398d6fb6c6f (patch) | |
tree | c610e3830ee8a4988788958f50ca31e7793983db | |
parent | a42014a3f99ece712dd6cd941c0c533ed93151e3 (diff) | |
download | gcc-2aa84d43ba19ff173cbf2f63ebd2c398d6fb6c6f.tar.gz |
PR target/47098 OBSD_LIB_SPEC on i686-openbsd3 missing
config-list.mk for i686-*-openbsd3.0 failed with:
gcc/config/openbsd.h:143:18: error: ‘OBSD_LIB_SPEC’ was not declared in this scope
#define LIB_SPEC OBSD_LIB_SPEC
^
gcc/gcc.c:879:31: note:
in expansion of macro ‘LIB_SPEC’
static const char *lib_spec = LIB_SPEC;
^
make[2]: *** [gcc.o] Error 1
i.e. openbsd-oldgas.h is only used on
i?86-*-openbsd2.*|i?86-*openbsd3.[0123] so add the OBSD_LIB_SPEC there
From-SVN: r222315
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/openbsd-oldgas.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bfab007f1de..2e70a87153f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> + PR target/47098 + * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add. + +2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> + PR target/47122 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header. diff --git a/gcc/config/openbsd-oldgas.h b/gcc/config/openbsd-oldgas.h index 04a4d370bac..5cef1eb0b9d 100644 --- a/gcc/config/openbsd-oldgas.h +++ b/gcc/config/openbsd-oldgas.h @@ -20,3 +20,7 @@ along with GCC; see the file COPYING3. If not see #define OBSD_OLD_GAS + +/* OpenBSD3.0 had no libpthread, pthreads lived in -lc_r */ +#define OBSD_LIB_SPEC "%{!shared:-lc%{pthread:_r}}" + |