ports/lang/bootgcc/patches/patch-gcc_config_arm_arm_h

13 lines
489 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: gcc/config/arm/arm.h
--- gcc/config/arm/arm.h.orig
+++ gcc/config/arm/arm.h
@@ -2195,7 +2195,7 @@ extern const char *arm_target_thumb_only (int argc, co
/* -mcpu=native handling only makes sense with compiler running on
an ARM chip. */
-#if defined(__arm__)
+#if defined(__arm__) && (defined(__linux__) || defined(__FreeBSD__))
extern const char *host_detect_local_cpu (int argc, const char **argv);
#define HAVE_LOCAL_CPU_DETECT
# define MCPU_MTUNE_NATIVE_FUNCTIONS \