Configure options of form -Dfoo=bar should get added to CFLAGS in mk1mf.pl
authorDr. Stephen Henson <steve@openssl.org>
Thu, 5 Jun 2008 15:09:40 +0000 (15:09 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 5 Jun 2008 15:09:40 +0000 (15:09 +0000)
util/mk1mf.pl

index 2b129ff36b1dde5141a43d2cb677aee34ad41acf..7ba804ce33ac10ef5963db44675633740ee238d3 100755 (executable)
@@ -1102,7 +1102,7 @@ sub read_options
                                }
                        }
                }
-       elsif (/^([^=]*)=(.*)$/){ $VARS{$1}=$2; }
+       elsif (/^([^=]*)=(.*)$/ && !/^-D/){ $VARS{$1}=$2; }
        elsif (/^-[lL].*$/)     { $l_flags.="$_ "; }
        elsif ((!/^-help/) && (!/^-h/) && (!/^-\?/) && /^-.*$/)
                { $c_flags.="$_ "; }