diff options
author | Mohammed Hawari <mohammed@hawari.fr> | 2021-01-22 14:30:56 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-01-28 08:38:21 +0000 |
commit | b78607b1db72173bffabc950253a3894c032cb5c (patch) | |
tree | 39458f32b0fa2fceeb75fc7053733b4daf067503 /build-data | |
parent | 27df7979782aafca80ea4c7309284bd48fe021c0 (diff) |
build: do not _FORTIFY_SOURCE in debug mode
When compiling in -O0, the glibc feature.h ignores _FORTIFY_SOURCE and,
in some distributions, throws a #warning, which fails the build. This
patch removes -D_FORTIFY_SOURCE in all debug configurations.
Change-Id: Ic30229c038353e49ff9419779e082a7083c1ea5f
Type: fix
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
Diffstat (limited to 'build-data')
-rw-r--r-- | build-data/platforms/arm32.mk | 4 | ||||
-rw-r--r-- | build-data/platforms/dpaa.mk | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/build-data/platforms/arm32.mk b/build-data/platforms/arm32.mk index 815cf9de71f..5d8749e2ff6 100644 --- a/build-data/platforms/arm32.mk +++ b/build-data/platforms/arm32.mk @@ -34,9 +34,9 @@ arm32_dpdk_make_extra_args = "CPU_CFLAGS='-mfloat-abi=hard' \ CONFIG_RTE_MAX_NUMA_NODES=1" -arm32_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -D_FORTIFY_SOURCE=2 -DVLIB_MAX_CPUS=4 -march=armv7-a \ +arm32_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DVLIB_MAX_CPUS=4 -march=armv7-a \ -fstack-protector-all -fPIC -Werror -arm32_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -D_FORTIFY_SOURCE=2 -DVLIB_MAX_CPUS=4 -march=armv7-a \ +arm32_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DVLIB_MAX_CPUS=4 -march=armv7-a \ -fstack-protector-all -fPIC -Werror arm32_TAG_CFLAGS = -g -O2 -D_FORTIFY_SOURCE=2 -DVLIB_MAX_CPUS=4 -march=armv7-a \ diff --git a/build-data/platforms/dpaa.mk b/build-data/platforms/dpaa.mk index dec17472c94..e6f0b232849 100644 --- a/build-data/platforms/dpaa.mk +++ b/build-data/platforms/dpaa.mk @@ -72,9 +72,9 @@ vpp_configure_args_dpaa += $(VPP_CFG_ARGS) endif -dpaa_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 -mtls-dialect=trad \ +dpaa_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -fPIC -fstack-protector-all -mtls-dialect=trad \ -march=$(MARCH) -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 -I$(OPENSSL_PATH)/include -dpaa_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -fstack-protector-all -D_FORTIFY_SOURCE=2 \ +dpaa_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -fstack-protector-all \ -march=$(MARCH) -Werror -DCLIB_LOG2_CACHE_LINE_BYTES=6 -L$(OPENSSL_PATH)/lib |