diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-04-06 16:05:23 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-04-06 16:05:23 +0100 |
commit | fed45e18795fc52900c578132862b10ae4e78b25 (patch) | |
tree | 4a6dcce95f2098fc1cc895f112c26860d593e56d /util | |
parent | d07201a2bb41bb0a8df2ea4c5316be1f44a5c354 (diff) |
Fix non-copy builds.
Only use -MMD and .sinclude in copy builds: other platforms don't
support them.
Diffstat (limited to 'util')
-rwxr-xr-x | util/mk1mf.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index f3a84380d1..599a192b66 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1305,9 +1305,11 @@ sub cc_compile_target $target =~ s/\//$o/g if $o ne "/"; $source =~ s/\//$o/g if $o ne "/"; $ret ="$target: \$(SRC_D)$o$source\n\t"; - $ret.="\$(CC) -MMD ${ofile}$target $ex_flags -c \$(SRC_D)$o$source\n\n"; + $ret.="\$(CC)" + $ret.= " -MMD" if $orig_platform eq "copy"; + $ret.= " ${ofile}$target $ex_flags -c \$(SRC_D)$o$source\n\n"; $target =~ s/\.o$/.d/; - $ret.=".sinclude \"$target\"\n\n"; + $ret.=".sinclude \"$target\"\n\n" if $orig_platform eq "copy"; return($ret); } |