From 5db2362242d8384093d506234a47f28fa1191299 Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Sun, 20 Mar 2022 16:25:27 +0000 Subject: [PATCH] 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. --- gcc/gcc/config.gcc | 1 + gcc/gcc/config/haiku.opt | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 gcc/gcc/config/haiku.opt diff --git a/gcc/gcc/config.gcc b/gcc/gcc/config.gcc index 98128be402..b5d16afa2c 100644 --- a/gcc/gcc/config.gcc +++ b/gcc/gcc/config.gcc @@ -839,6 +839,7 @@ case ${target} in 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 0000000000..efa1872890 --- /dev/null +++ b/gcc/gcc/config/haiku.opt @@ -0,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 +; . + +; 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.