@@ 174,8 174,13 @@
(outputs '("out"))
(arguments (substitute-keyword-arguments (package-arguments base)
((#:configure-flags flags)
- #~(cons* "--with-target-subdir=yes"
+ ; This is more of a hack. This option doesn't really seem
+ ; to change what subdir is used eventually, but without it there is
+ ; error: Link tests are not allowed after GCC_NO_EXECUTABLES.
+ #~(cons* "--with-target-subdir=\".\""
"CFLAGS=-ffunction-sections -fdata-sections"
+ "CXXFLAGS=-ffunction-sections -fdata-sections"
+ ; Only the arm-none-eabi/lib is added to CROSS_LIBRARY_PATH
(string-append "--libdir="
#$output
"/arm-none-eabi/lib")
@@ 190,9 195,11 @@
(arguments (substitute-keyword-arguments (package-arguments base)
((#:configure-flags flags)
#~(cons* "CFLAGS=-ffunction-sections -fdata-sections -fno-exceptions"
+ "CXXFLAGS=-ffunction-sections -fdata-sections -fno-exceptions"
(filter
(lambda (flag)
- (not (string-prefix? "CFLAGS=" flag)))
+ (not (or (string-prefix? "CFLAGS=" flag)
+ (string-prefix? "CXXFLAGS="))))
#$flags)))
((#:phases phases)
#~(modify-phases #$phases