diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-04-30 11:50:46 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-07 11:21:59 +0000 |
commit | 49ee68443d41ffe1ab72c964104da980a2eb4367 (patch) | |
tree | f87d2096fbd19c629390548c7b1d6351e3479851 /build-data/platforms | |
parent | 4168c4d914c36f76c45cd8c6dde207b9f1c688e2 (diff) |
build: add -Wall and -fno-common, fix reported issues
Type: refactor
Change-Id: I8489ccd54411c2aa9355439c5641dc31012c64a2
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-data/platforms')
-rw-r--r-- | build-data/platforms/vpp.mk | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk index 97484802581..11ffdacaf52 100644 --- a/build-data/platforms/vpp.mk +++ b/build-data/platforms/vpp.mk @@ -22,20 +22,26 @@ endif vpp_root_packages = vpp vom -vpp_debug_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 \ - -fstack-protector-all -fPIC -Werror -vpp_debug_TAG_CXXFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 \ - -fstack-protector-all -fPIC -Werror -vpp_debug_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 \ - -fstack-protector-all -fPIC -Werror - -vpp_TAG_CFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror -vpp_TAG_CXXFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror -vpp_TAG_LDFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror -pie - -vpp_clang_TAG_CFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror -vpp_clang_TAG_CXXFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror -vpp_clang_TAG_LDFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -fstack-protector -fPIC -Werror +vpp_common_cflags = \ + -g \ + -DFORTIFY_SOURCE=2 \ + -fstack-protector \ + -fPIC \ + -Wall \ + -Werror \ + -fno-common + +vpp_debug_TAG_CFLAGS = -O0 -DCLIB_DEBUG $(vpp_common_cflags) +vpp_debug_TAG_CXXFLAGS = -O0 -DCLIB_DEBUG $(vpp_common_cflags) +vpp_debug_TAG_LDFLAGS = -O0 -DCLIB_DEBUG $(vpp_common_cflags) + +vpp_TAG_CFLAGS = -O2 $(vpp_common_cflags) +vpp_TAG_CXXFLAGS = -O2 $(vpp_common_cflags) +vpp_TAG_LDFLAGS = -O2 $(vpp_common_cflags) -pie + +vpp_clang_TAG_CFLAGS = -O2 $(vpp_common_cflags) +vpp_clang_TAG_CXXFLAGS = -O2 $(vpp_common_cflags) +vpp_clang_TAG_LDFLAGS = -O2 $(vpp_common_cflags) vpp_gcov_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -DCLIB_GCOV -fPIC -Werror -fprofile-arcs -ftest-coverage vpp_gcov_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -DCLIB_GCOV -fPIC -Werror -coverage |