diff options
author | aldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-22 08:41:13 +0000 |
---|---|---|
committer | aldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-22 08:41:13 +0000 |
commit | 2c0afffd2a5dd906466759b9604a0c19025e5aea (patch) | |
tree | c610e3830ee8a4988788958f50ca31e7793983db /gcc | |
parent | a27111cc407e9571c28f64281c3d77446d3e767f (diff) | |
download | gcc-2c0afffd2a5dd906466759b9604a0c19025e5aea.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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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}}" + |