2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-10 23:20:58 +00:00

try static-libgcc for dll but not exe

git-svn-id: svn+q:///qpdf/trunk@786 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2009-10-11 03:19:34 +00:00
parent 8817ebb3f6
commit f70217a2f6

View File

@ -48,12 +48,12 @@ endef
# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) # Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age)
define makelib define makelib
dlltool -l $(2) -D $$(basename `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(5).dll) $(1); \ 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 \ $(CXX) -shared -static-libgcc -o `echo $(2) | sed -e 's,/lib\(.*\).a,/\1,'`$(5).dll \
$(1) $(3) $(4) $(1) $(3) $(4)
endef endef
# 1 2 3 4 # 1 2 3 4
# Usage: $(call makebin,objs,binary,ldflags,libs) # Usage: $(call makebin,objs,binary,ldflags,libs)
define makebin define makebin
$(CXX) $(CXXFLAGS) -static-libgcc $(1) -o $(2) $(3) $(4) $(CXX) $(CXXFLAGS) $(1) -o $(2) $(3) $(4)
endef endef