diff options
author | Zoltan Kuscsik <zoltan.kuscsik@linaro.org> | 2016-02-23 18:47:46 +0100 |
---|---|---|
committer | Zoltan Kuscsik <zoltan.kuscsik@linaro.org> | 2016-02-24 14:21:36 +0100 |
commit | 92db3e0c5a6797849a081225cd48c7e6a22348c8 (patch) | |
tree | 98ddbb848613a1f9f21c5de25499d3a212d38945 /mk/gcc.mk | |
parent | 8c1413f06ed66dfaeb06d0b6870ba427b331a48f (diff) |
Add CFLAGS to libgcc lookup command
GCC may require the --sysroot command line parameter
to find libgcc.a
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Zoltan Kuscsik <zoltan.kuscsik@linaro.org>
Signed-off-by: Zoltan Kuscsik <zoltan.kuscsik@linaro.org>
Diffstat (limited to 'mk/gcc.mk')
-rw-r--r-- | mk/gcc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ nostdinc$(sm) := -nostdinc -isystem $(shell $(CC$(sm)) \ -print-file-name=include 2> /dev/null) # Get location of libgcc from gcc -libgcc$(sm) := $(shell $(CC$(sm)) $(comp-cflags$(sm)) \ +libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS) $(comp-cflags$(sm)) \ -print-libgcc-file-name 2> /dev/null) # Define these to something to discover accidental use |