mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
13 lines
542 B
Text
13 lines
542 B
Text
--- lib/replace/wscript.orig 2013-06-30 21:48:11.959883882 +0000
|
|
+++ lib/replace/wscript 2013-06-30 21:48:25.639903597 +0000
|
|
@@ -53,8 +53,9 @@
|
|
conf.ADD_CFLAGS(f)
|
|
break
|
|
|
|
- if conf.CHECK_CFLAGS(['-fstack-protector']):
|
|
+ if conf.CHECK_CFLAGS(['-fstack-protector']) and conf.CHECK_LDFLAGS(['-fstack-protector']):
|
|
conf.ADD_CFLAGS('-fstack-protector')
|
|
+ conf.ADD_LDFLAGS('-fstack-protector')
|
|
|
|
# Try to find the right extra flags for -Werror behaviour
|
|
for f in ["-Werror", # GCC
|