summaryrefslogtreecommitdiff
path: root/openssl/makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/makefile.mk')
-rw-r--r--openssl/makefile.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/openssl/makefile.mk b/openssl/makefile.mk
index 6fb48b7..d8446f9 100644
--- a/openssl/makefile.mk
+++ b/openssl/makefile.mk
@@ -134,7 +134,11 @@ OUT2BIN += out/libeay32.dll
# The env. vars CC and PERL are used by nmake, and nmake insists on '\'s
# If WRAPCMD is set it is prepended before the compiler, don't touch that.
.IF "$(WRAPCMD)"==""
- CC!:=$(subst,/,\ $(normpath,1 $(CC)))
+ # relace / with \ first word only
+ cc_first_repl = $(subst,/,\ $(normpath,1 $(CC:1)))
+ cc_first = $(normpath,1 $(CC:1))
+ CC!:=$(subst,$(cc_first),$(cc_first_repl) $(normpath,1 $(CC)))
+# CC!:=$(subst,/,\ $(normpath,1 $(CC)))
.EXPORT : CC
.ENDIF
PERL_bak:=$(PERL)