aboutsummaryrefslogtreecommitdiffstats
path: root/make/mingw.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/mingw.mk')
-rw-r--r--make/mingw.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/make/mingw.mk b/make/mingw.mk
index aa548931..04798c55 100644
--- a/make/mingw.mk
+++ b/make/mingw.mk
@@ -40,7 +40,9 @@ libcompile = $(compile)
define makelib
ar cru $(2) $(1);
ranlib $(2);
- dlltool -l $(2) -D `echo $(2) | sed -e 's,lib\(.*\).a,\1'`$(3).dll \
+ echo `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(3).dll
+ dlltool -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(3).dll) $(1); \
+ $(CXX) -shared -o `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(3).dll \
$(1) $(LDFLAGS) $(LIBS)
endef