From ff449fd9b74aa88fba58530de5aaf376f3d16510 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 23 Nov 2024 15:02:27 -0500 Subject: build: Check for -pthread before using it QNX's qcc, for example, will complain that cc1: error: command-line option '-pthread' is valid for the driver but not for C --- build/flags/pthread.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 build/flags/pthread.c (limited to 'build/flags/pthread.c') diff --git a/build/flags/pthread.c b/build/flags/pthread.c new file mode 100644 index 0000000..db09aa4 --- /dev/null +++ b/build/flags/pthread.c @@ -0,0 +1,8 @@ +// Copyright © Tavian Barnes +// SPDX-License-Identifier: 0BSD + +/// _CFLAGS += -pthread + +int main(void) { + return 0; +} -- cgit v1.2.3