summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>1998-12-21 13:18:26 +0000
committerespie <espie@openbsd.org>1998-12-21 13:18:26 +0000
commite2964c9ee47b7c5195d8ad8b4be839a1c52af0b6 (patch)
treed2ffc2d309e65427fc2f5537782ceb8ce9e7cba9
parentreturn EOPNOTSUPP when there is no support for this filesystem in the kernel. (diff)
downloadwireguard-openbsd-e2964c9ee47b7c5195d8ad8b4be839a1c52af0b6.tar.xz
wireguard-openbsd-e2964c9ee47b7c5195d8ad8b4be839a1c52af0b6.zip
Steal commit from d: forgetting to update comments is a bad idea.
Also, remove some pomposity.
-rw-r--r--gnu/usr.bin/gcc/config/openbsd.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/gnu/usr.bin/gcc/config/openbsd.h b/gnu/usr.bin/gcc/config/openbsd.h
index eae7a4a094c..83db635514f 100644
--- a/gnu/usr.bin/gcc/config/openbsd.h
+++ b/gnu/usr.bin/gcc/config/openbsd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: openbsd.h,v 1.10 1998/11/20 11:18:22 d Exp $ */
+/* $OpenBSD: openbsd.h,v 1.11 1998/12/21 13:18:26 espie Exp $ */
/* OPENBSD_NATIVE is defined when gcc is integrated into the OpenBSD
source tree so it can be configured appropriately when using the
@@ -36,28 +36,29 @@
prefer mkstemp(), but we will take what we get. XXX busted */
#undef MKTEMP_EACH_FILE
-/* Provide a CPP_SPEC appropriate for OpenBSD. Current we just deal with
- the GCC option `-posix'. */
+/* CPP_SPEC appropriate for OpenBSD. We only deal with -posix
+ and -pthread */
#undef CPP_SPEC
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_POSIX_THREADS}"
-/* Provide an ASM_SPEC appropriate for OpenBSD. Currently we only deal
+/* ASM_SPEC appropriate for OpenBSD. We only deal
with the options for generating PIC code. */
#undef ASM_SPEC
#define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k -K}"
-/* Provide a LIB_SPEC appropriate for OpenBSD. Just select the appropriate
- libc, depending on whether we're doing profiling. */
-/* Also, deal with the -pthread option. */
+/* LIB_SPEC appropriate for OpenBSD. Select the appropriate
+ libc, depending on profiling and threads.
+ Basically, -lc(_r)?(_p)?, select _r for threads, _p for p or pg
+ */
#undef LIB_SPEC
/* #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" */
#define LIB_SPEC "-lc%{pthread:_r}%{p:_p}%{!p:%{pg:_p}}"
-/* Provide a LINK_SPEC appropriate for OpenBSD. Here we provide support
- for the special GCC options -static, -assert, and -nostdlib. */
+/* LINK_SPEC appropriate for OpenBSD. Support
+ for GCC options -static, -assert, and -nostdlib. */
#undef LINK_SPEC
#define LINK_SPEC \