]> granicus.if.org Git - php/commitdiff
extend check for add_flag
authorAnatol Belski <ab@php.net>
Tue, 1 Mar 2016 08:35:00 +0000 (09:35 +0100)
committerAnatol Belski <ab@php.net>
Tue, 1 Mar 2016 08:37:50 +0000 (09:37 +0100)
win32/build/confutils.js

index 95f7985c3d6d5266722a53f7f5c625e4e5091147..dd9bddd57a5f10c40f8c80a8361334f4869cb294 100644 (file)
@@ -2156,7 +2156,7 @@ function ADD_FLAG(name, flags, target)
                        match can be done. This will also
                        help to normalize flags and to not
                        to insert duplicates. */
-               if (curr_flags.indexOf(" " + flags) >= 0) {
+               if (curr_flags.indexOf(" " + flags) >= 0 || curr_flags.indexOf(flags + " ") >= 0) {
                        return;
                }