summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-29 23:27:32 +0100
committerCarl Hetherington <cth@carlh.net>2025-10-30 00:25:42 +0100
commit8642e4ecf47b3b0ca0b545061e6f1cfc6237775f (patch)
tree37347ee3e9e5980050e9222a43eaf2ac72945168
parent0c989ac8f4f7241a3a8cbd3c04c8c3e7a1de33eb (diff)
Build for arch with LINKFLAGS -Werror to catch linker warnings.
-rw-r--r--cscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/cscript b/cscript
index dbc9d5efd..bb5f5b9f2 100644
--- a/cscript
+++ b/cscript
@@ -700,6 +700,7 @@ def build(target, options, for_package):
'-Wp,-D_FORTIFY_SOURCE=3 -Wformat -fstack-clash-protection '
'-fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
'-Wp,-D_GLIBCXX_ASSERTIONS -g -flto=auto')
+ target.append_with_space('LINKFLAGS', '-Werror')
target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target, options, for_package)))
target.command('./waf')
target.command('./waf install')