diff options
Diffstat (limited to 'make/mingw.mk')
-rw-r--r-- | make/mingw.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/make/mingw.mk b/make/mingw.mk index ac7fa4ca..2ecc578d 100644 --- a/make/mingw.mk +++ b/make/mingw.mk @@ -62,8 +62,9 @@ endef # 1 2 3 4 5 6 7 # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) define makelib - dlltool -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(5).dll) $(1); \ - $(CXX) -shared -o `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(5).dll \ + major=$$(( $(5) - $(7))); \ + dlltool -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(major).dll) $(1); \ + $(CXX) -shared -o `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(major).dll \ $(1) $(3) $(4) endef |