port: don't force libc++, fix system.c on clang16+

This commit is contained in:
fgsfds committed 2024-05-13 15:24:45 +02:00
1 parent 12cf9df01b
commit 62a55a3d6e
2 files changed
+4 -8

No files matched your search

-4
View File
@@ -168,10 +168,6 @@ else # assume *nix
# TODO: detect soft/hardfloat abi
TOOLCHAIN ?= arm-linux-gnueabihf-
endif
# on clang link libc++
ifneq (,$(findstring clang,$(CC))$(findstring clang,$(CXX)))
TARGET_LDFLAGS += -lc++
endif
endif
# On x86_64 gcc add -m32 to CFLAGS if building a 32-bit executable.
+4 -4
View File
@@ -1,3 +1,7 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
@@ -28,10 +32,6 @@ __attribute__((dllexport)) u32 AmdPowerXpressRequestHighPerformance = 1;
#else
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <unistd.h>
// figure out how to yield