Configure options of form -Dfoo=bar should get added to CFLAGS in mk1mf.pl

This commit is contained in:
Dr. Stephen Henson 2008-06-05 15:09:40 +00:00
parent bca68e90cc
commit f01f085cb9

View File

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