summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-08-31 14:43:36 +0000
committerkettenis <kettenis@openbsd.org>2012-08-31 14:43:36 +0000
commit7342d9f7ab0f1fd0b96bc38b0c1469a61a857136 (patch)
tree1c503c77010ea1760625955af0f57586770cff4b
parenttweak tweak, ok jmc@ (diff)
downloadwireguard-openbsd-7342d9f7ab0f1fd0b96bc38b0c1469a61a857136.tar.xz
wireguard-openbsd-7342d9f7ab0f1fd0b96bc38b0c1469a61a857136.zip
Use OBSD_LIB_SPEC and OBSD_CPP_SPEC instead of rolling our own. Means
powerpc now gets the right behaviour for -pthread as well. ok pascal@, krw@, millert@
-rw-r--r--gnu/gcc/gcc/config/rs6000/sysv4.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/gcc/gcc/config/rs6000/sysv4.h b/gnu/gcc/gcc/config/rs6000/sysv4.h
index fe05480440b..48c9b1f80f6 100644
--- a/gnu/gcc/gcc/config/rs6000/sysv4.h
+++ b/gnu/gcc/gcc/config/rs6000/sysv4.h
@@ -968,7 +968,7 @@ ncrtn.o%s"
/* OpenBSD support. */
#ifndef LIB_OPENBSD_SPEC
-#define LIB_OPENBSD_SPEC "%{!shared:%{pthread:-lpthread%{p:_p}%{!p:%{pg:_p}}}} %{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}"
+#define LIB_OPENBSD_SPEC OBSD_LIB_SPEC
#endif
#ifndef STARTFILE_OPENBSD_SPEC
@@ -991,7 +991,7 @@ ncrtn.o%s"
#endif
#ifndef CPP_OS_OPENBSD_SPEC
-#define CPP_OS_OPENBSD_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+#define CPP_OS_OPENBSD_SPEC OBSD_CPP_SPEC
#endif
/* WindISS support. */