diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-27 09:43:48 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-27 16:37:01 +0200 |
commit | 8e81cca55b1d591660f7f4db0576fdd2de731861 (patch) | |
tree | 37d691fbf4187eeba948372b4a43ff92fedad1bb | |
parent | 690dd80d07b3c807547df63337ed658d0fdf3b40 (diff) | |
download | OSELAS.Toolchain-8e81cca55b1d591660f7f4db0576fdd2de731861.tar.gz OSELAS.Toolchain-8e81cca55b1d591660f7f4db0576fdd2de731861.tar.xz |
glibc: use the wrapper to inject the extra CFLAGS
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/glibc.make | 4 | ||||
-rw-r--r-- | rules/pre/toolchain.make | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/rules/glibc.make b/rules/glibc.make index bde8e7b..674118a 100644 --- a/rules/glibc.make +++ b/rules/glibc.make @@ -40,7 +40,6 @@ GLIBC_ENV := \ CC="$(CROSS_CC) -fuse-ld=bfd" \ BUILD_CC=$(HOSTCC) \ MAKEINFO=: \ - $(GLIBC_DEBUG_FLAGS_ENV) \ \ libc_cv_slibdir='/lib' \ \ @@ -77,6 +76,9 @@ GLIBC_CONF_OPT := \ --enable-shared \ --enable-static-nss +GLIBC_CFLAGS = $(TOOLCHAIN_CROSS_DEBUG_FLAGS) +GLIBC_CXXFLAGS = $(TOOLCHAIN_CROSS_DEBUG_FLAGS) + # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make index c7c3d97..063f5ac 100644 --- a/rules/pre/toolchain.make +++ b/rules/pre/toolchain.make @@ -66,9 +66,6 @@ TOOLCHAIN_CROSS_DEBUG_FLAGS := \ -g3 \ -gno-record-gcc-switches \ $(addprefix -ffile-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP)) - -GLIBC_DEBUG_FLAGS_ENV := \ - $(addsuffix "-O2 $(TOOLCHAIN_CROSS_DEBUG_FLAGS)",CFLAGS= CXXFLAGS=) endif # |