diff options
-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}}" + |