summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 5c1090c340..b35821d50f 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -310,6 +310,9 @@ MJIT_OPTFLAGS = $(OPTFLAGS)
!ifndef MJIT_DEBUGFLAGS
MJIT_DEBUGFLAGS = $(DEBUGFLAGS)
!endif
+!ifndef MJIT_LDSHARED
+MJIT_LDSHARED = $(MJITCC) -LD
+!endif
DLDFLAGS = $(LDFLAGS) -dll
MAINLIBS = $(LIBS)
@@ -1289,7 +1292,7 @@ mjit_config.h:
@echo /* MJIT_DEBUGFLAGS */>> $@
@
@(set sep=#define MJIT_LDSHARED ) & \
- for %I in ($(LDSHARED)) do @(call echo.%%sep%%"%%~I", \& set sep= ) >> $@
+ for %I in ($(MJIT_LDSHARED)) do @(call echo.%%sep%%"%%~I", \& set sep= ) >> $@
@echo /* MJIT_LDSHARED */>> $@
@
@(set sep=#define MJIT_DLDFLAGS ) & \