summaryrefslogtreecommitdiff
path: root/expat
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2020-07-16 23:46:26 +0200
committerSebastian Pipping <sebastian@pipping.org>2020-07-16 23:46:26 +0200
commite94b0b243efd427d1f1a5ad2c2d72f9b9544d811 (patch)
tree620a1c07da00987f44e47cfd0fd7471d85901b76 /expat
parent5a7fe4d19a240727d6be7161092b1a2e34892fd8 (diff)
downloadlibexpat-git-e94b0b243efd427d1f1a5ad2c2d72f9b9544d811.tar.gz
CMake: Consider use of CMAKE_{EXE,MODULE,SHARED}_LINKER_FLAGS
Diffstat (limited to 'expat')
-rw-r--r--expat/CMakeLists.txt5
-rwxr-xr-xexpat/qa.sh1
2 files changed, 4 insertions, 2 deletions
diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt
index b43dffa2..f0e89159 100644
--- a/expat/CMakeLists.txt
+++ b/expat/CMakeLists.txt
@@ -440,8 +440,9 @@ if(EXPAT_BUILD_FUZZERS)
"This is likely in error - consider adding "
"-DCMAKE_C_FLAGS='-fsanitize=<sanitizer>' and "
"-DCMAKE_CXX_FLAGS='-fsanitize=<sanitizer>' and "
- "-DCMAKE_STATIC_LINKER_FLAGS='-fsanitize=<sanitizer>' and "
- "-DCMAKE_EXE_LINKER_FLAGS='-fsanitize=<sanitizer>' to your cmake "
+ "-DCMAKE_EXE_LINKER_FLAGS='-fsanitize=<sanitizer>' and "
+ "-DCMAKE_MODULE_LINKER_FLAGS='-fsanitize=<sanitizer>' and "
+ "-DCMAKE_SHARED_LINKER_FLAGS='-fsanitize=<sanitizer>' to your cmake "
"execution.")
endif()
diff --git a/expat/qa.sh b/expat/qa.sh
index ca4fe07e..f745707c 100755
--- a/expat/qa.sh
+++ b/expat/qa.sh
@@ -96,6 +96,7 @@ run_cmake() {
-DCMAKE_LINKER="${LD}"
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}"
+ -DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}"
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}"
-DEXPAT_WARNINGS_AS_ERRORS=ON