Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-02-15 13:51:54 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-02-15 18:31:16 +0300
commitbe5926babbfb23ded1de2181a7524b8c3eebe34c (patch)
tree219a095b24c7c21a52c185b833f12dddbb4df81a /libgloss/arm
parentccabeae4e3c684945f402e42e102cb976065ca2e (diff)
Fix elf-nano.specs to work without -save-temps
The changes in af272aca591fe1dc0f1be64ae5bda147ea98a047 only works when using gcc/g++ with -E or -save-temps, otherwise newlib's newlib.h gets used even if -specs=nano.specs is specified. This is because the driver only use cpp_options spec for the external cpp tool, not for the integrated one. This patch uses instead cpp_unique_options which is used in all cases: it is used directly when the integrated preprocessor is used, and indirectly by expansion of cpp_options otherwise.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/elf-nano.specs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgloss/arm/elf-nano.specs b/libgloss/arm/elf-nano.specs
index 324107e2c..82594bd03 100644
--- a/libgloss/arm/elf-nano.specs
+++ b/libgloss/arm/elf-nano.specs
@@ -1,9 +1,9 @@
%rename link nano_link
%rename link_gcc_c_sequence nano_link_gcc_c_sequence
-%rename cpp_options nano_cpp_options
+%rename cpp_unique_options nano_cpp_unique_options
-*cpp_options:
--isystem =/include/newlib-nano %(nano_cpp_options)
+*cpp_unique_options:
+-isystem =/include/newlib-nano %(nano_cpp_unique_options)
*nano_libc:
-lc_nano