]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - m4/pdns_stack_protector.m4
Merge pull request #9073 from pieterlexis/runtime-dirs-virtual-hosting
[thirdparty/pdns.git] / m4 / pdns_stack_protector.m4
index c268d48c586f06edde7218dfe94e526ff398527c..388035cf1cf9146dd8f45ab465f1ca240caf380c 100644 (file)
@@ -20,7 +20,7 @@ dnl
 
 AC_DEFUN([AC_CC_STACK_PROTECTOR],[
       gl_COMPILER_OPTION_IF([-fstack-protector], [
-        CFLAGS="$CFLAGS -fstack-protector"
-        CXXFLAGS="$CXXFLAGS -fstack-protector"
+        CFLAGS="-fstack-protector $CFLAGS"
+        CXXFLAGS="-fstack-protector $CXXFLAGS"
       ])
 ])