diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-02-15 20:16:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-02-15 20:16:13 +0000 |
commit | 71eca86c304806c8f6e825705c40f0a2a417cb19 (patch) | |
tree | 9c147e1713f8ac0ac14c5c31b2f4cc7c6c38a6fa /util/mk1mf.pl | |
parent | dd1e3bd8d4b735456bd1dd1d7a42cb4d44bd921b (diff) |
Don't override $srcd for non copy builds.
Diffstat (limited to 'util/mk1mf.pl')
-rwxr-xr-x | util/mk1mf.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 0f23854c44..72ae0fddae 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1073,11 +1073,11 @@ sub cc_compile_target $ex_flags.=" -DMK1MF_BUILD -D$platform_cpp_symbol" if ($source =~ /cversion/); $target =~ s/\//$o/g if $o ne "/"; $source =~ s/\//$o/g if $o ne "/"; - $srcd = "\$(SRC_D)$o" unless defined $srcd; + $srcd = "\$(SRC_D)$o" unless defined $srcd && $platform ne 'copy'; $ret ="$target: $srcd$source\n\t"; $ret.="\$(CC)"; $ret.= " -MMD" if $orig_platform eq "copy"; - $ret.= " ${ofile}$target $ex_flags -c \$(SRC_D)$o$source\n\n"; + $ret.= " ${ofile}$target $ex_flags -c $srcd$source\n\n"; $target =~ s/\.o$/.d/; $ret.=".sinclude \"$target\"\n\n" if $orig_platform eq "copy"; return($ret); |