⛏️ index : buildtools.git

author Jessica Hamilton <jessica.l.hamilton@gmail.com> 2022-03-20 16:25:27.0 +00:00:00
committer Jessica Hamilton <jessica.l.hamilton@gmail.com> 2022-03-22 23:03:28.0 +00:00:00
commit
5db2362242d8384093d506234a47f28fa1191299 [patch]
tree
d19f9802fc1909aebd21f42e7a89f553b4a66148
parent
795d2053a07fdd2ce3c4ef6f649b0a27e2b085d1
download
5db2362242d8384093d506234a47f28fa1191299.tar.gz

haiku: allow passing -pthread as a no-op.

Reduces the need to patch configure/build scripts that assume
`-pthread` is available on POSIX/UNIX-ish systems.

Diff

 gcc/gcc/config.gcc       |  1 +
 gcc/gcc/config/haiku.opt | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/gcc/gcc/config.gcc b/gcc/gcc/config.gcc
index 98128be..b5d16af 100644
--- a/gcc/gcc/config.gcc
+++ a/gcc/gcc/config.gcc
@@ -839,6 +839,7 @@
  default_use_cxa_atexit=yes
  tm_p_file="${tm_p_file} haiku-protos.h"
  extra_objs="${extra_objs} haiku.o"
  extra_options="${extra_options} haiku.opt"
  ;;
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
  extra_options="$extra_options gnu-user.opt"
diff --git a/gcc/gcc/config/haiku.opt b/gcc/gcc/config/haiku.opt
new file mode 100644
index 0000000..efa1872 100644
--- /dev/null
+++ a/gcc/gcc/config/haiku.opt
@@ -1,0 +1,29 @@
; Haiku options.

; Copyright (C) 2010-2022 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
; GCC is free software; you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 3, or (at your option) any later
; version.
;
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
; WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
; for more details.
;
; You should have received a copy of the GNU General Public License
; along with GCC; see the file COPYING3.  If not see
; <http://www.gnu.org/licenses/>.

; See the GCC internals manual (options.texi) for a description of
; this file's format.

; Please try to keep this file in ASCII collating order.

pthread
Driver

; This comment is to ensure we retain the blank line above.