Update dependencies.
[oweals/openssl.git] / util / mkdef.pl
index 4576c76144bb6c79f684085067dfcd8c4c54b0df..9987387a30c07514a08e4b2fe4fc372b50323c16 100755 (executable)
@@ -18,7 +18,15 @@ $W32=1;
 $NT=0;
 # Set this to make typesafe STACK definitions appear in DEF
 $safe_stack_def = 1;
-foreach (@ARGV)
+
+$options="";
+open(IN,"<Makefile.ssl") || die "unable to open Makefile.ssl!\n";
+while(<IN>) {
+    $options=$1 if (/^OPTIONS=(.*)$/);
+}
+close(IN);
+
+foreach (@ARGV, split(/ /, $options))
        {
        $W32=1 if $_ eq "32";
        $W32=0 if $_ eq "16";