summaryrefslogtreecommitdiffstats
path: root/Makefile.mingw64
diff options
context:
space:
mode:
authorJoerg Koenig <Joerg.Koenig@techsat.com>2019-06-05 19:17:42 (GMT)
committerJoerg Koenig <Joerg.Koenig@techsat.com>2019-06-05 19:17:42 (GMT)
commit56adeca7310d73b0002dc0a0dccdb795c96f6e32 (patch)
tree4bd4f7e165ffd32c8f5b88fcc232bef81ff5ab22 /Makefile.mingw64
parent490af33328110fe3b4e2f0d769727f1ec538ebf2 (diff)
downloadQt-56adeca7310d73b0002dc0a0dccdb795c96f6e32.zip
Qt-56adeca7310d73b0002dc0a0dccdb795c96f6e32.tar.gz
Qt-56adeca7310d73b0002dc0a0dccdb795c96f6e32.tar.bz2
Fixed MinGW package bundle
- install missing gcc libs (winpthreads) - create qt.conf file for cross-compiling from linux to windows Change-Id: I852b52797da266013a4cd757e1e2a061e6c5aa0f
Diffstat (limited to 'Makefile.mingw64')
-rw-r--r--Makefile.mingw648
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.mingw64 b/Makefile.mingw64
index 4befeda..7f53b57 100644
--- a/Makefile.mingw64
+++ b/Makefile.mingw64
@@ -12,12 +12,16 @@ VERSION = $(VERSION_SHORT).$(VERSION_RELEASE)
SSL_VERSION = 1.0.2r
SSL_ARCHIVE = openssl-$(SSL_VERSION).tar.gz
-PACKAGE_NAME = qt-$(VERSION)-$(ARCH)
QT_BUILD_PATH = c:/tmp
QT_INST_PATH = $(QT_BUILD_PATH)/qt
QT_SRC_PATH = $(QT_BUILD_PATH)/qt-src
+GCC = $(shell which g++)
+GCC_PATH = $(shell dirname $(GCC))
+
+PACKAGE_NAME = qt-$(VERSION)-$(ARCH)
+
all: download ssl qt
ssl: ssl.$(ARCH)
@@ -86,7 +90,7 @@ qt.$(ARCH):
make install
mv -f $(QT_INST_PATH)/bin/openssl.exe \
$(QT_INST_PATH)/bin/qt-openssl.exe
- cp -f $(GCC_PATH)/bin/*.dll $(QT_INST_PATH)/bin/
+ cp -f $(GCC_PATH)/x86_64-w64-mingw32/bin/libwinpthread-1.dll $(QT_INST_PATH)/bin/
cd $(QT_INST_PATH)/ && \
tar --force-local -zcf $(TOP)/$(PACKAGE_NAME).tgz ./
rm -Rf $(QT_INST_PATH)