ports/devel/gcc-arm-embedded/files/patch-src--gcc--gcc--config--arm--arm.h
Lev A. Serebryakov 3c1b7b2cc8 (1) Fix build after r366194
(2) Fix build on FreeBSD/arm. It should be considered as cross-build anyway.
2014-09-07 18:44:19 +00:00

11 lines
502 B
C

--- src/gcc/gcc//config/arm/arm.h.orig 2014-05-27 05:44:10.000000000 +0400
+++ src/gcc/gcc//config/arm/arm.h 2014-09-07 22:16:57.000000000 +0400
@@ -2325,7 +2325,7 @@
/* -mcpu=native handling only makes sense with compiler running on
an ARM chip. */
-#if defined(__arm__)
+#if defined(__arm__) && !defined(CROSS_DIRECTORY_STRUCTURE)
extern const char *host_detect_local_cpu (int argc, const char **argv);
# define EXTRA_SPEC_FUNCTIONS \
{ "local_cpu_detect", host_detect_local_cpu },