aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets/targets.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/targets/targets.go')
-rw-r--r--sys/targets/targets.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 422a129ca..71988ea32 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -577,16 +577,18 @@ var (
"-Wno-array-bounds",
"-Wno-format-overflow",
"-Wno-unused-but-set-variable",
+ "-Wno-unused-command-line-argument",
}
optionalCFlags = map[string]bool{
- "-static": true, // some distributions don't have static libraries
- "-static-pie": true, // this flag is also not supported everywhere
- "-Wunused-const-variable": true, // gcc 5 does not support this flag
- "-fsanitize=address": true, // some OSes don't have ASAN
- "-Wno-stringop-overflow": true,
- "-Wno-array-bounds": true,
- "-Wno-format-overflow": true,
- "-Wno-unused-but-set-variable": true,
+ "-static": true, // some distributions don't have static libraries
+ "-static-pie": true, // this flag is also not supported everywhere
+ "-Wunused-const-variable": true, // gcc 5 does not support this flag
+ "-fsanitize=address": true, // some OSes don't have ASAN
+ "-Wno-stringop-overflow": true,
+ "-Wno-array-bounds": true,
+ "-Wno-format-overflow": true,
+ "-Wno-unused-but-set-variable": true,
+ "-Wno-unused-command-line-argument": true,
}
fallbackCFlags = map[string]string{
"-static-pie": "-static", // if an ASLR static binary is impossible, build just a static one