MinGW: Statically link runtime libraries into qmake
Avoid runtime dependencies to e.g. libpwinthread-1.dll, libstc++-6.dll. This prevents Qt Creator from spitting out error dialogs on each startup for registered MinGW versions that aren't in the default PATH. Change-Id: Id55518db8c8e0521b6a41add1eaf38f75a892c8b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
94649b4cbd
commit
cded50e6f2
1
dist/changes-5.0.1
vendored
1
dist/changes-5.0.1
vendored
@ -98,6 +98,7 @@ Qt for Windows CE
|
||||
* Compiler Specific Changes *
|
||||
****************************************************************************
|
||||
|
||||
- MinGW: Statically link runtime libraries into qmake
|
||||
|
||||
****************************************************************************
|
||||
* Tools *
|
||||
|
@ -54,7 +54,7 @@ CFLAGS = -c -o$@ -O \
|
||||
-DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \
|
||||
-DUNICODE
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
LFLAGS = -static-libgcc -s
|
||||
LFLAGS = -static -s
|
||||
LIBS = -lole32 -luuid -ladvapi32 -lkernel32
|
||||
LINKQMAKE = g++ $(LFLAGS) -o qmake.exe $(OBJS) $(QTOBJS) $(LIBS)
|
||||
ADDCLEAN =
|
||||
|
Loading…
x
Reference in New Issue
Block a user