Skip to content

Commit 3009180

Browse files
committed
depends: always use correct ar for win qt
If we don't set this explicitly, then qt will still use it's default windows ar, when building with LTO (when we want it to use gcc-ar). So set `QMAKE_LIB` which is used for win32, and defaults to `ar -rc`. This way we always get the correct ar. Issue can be seen building in Guix with LTO. i.e: ```bash x86_64-w64-mingw32-ar: .obj/release/hb-blob.o: plugin needed to handle lto object ```
1 parent aa22009 commit 3009180

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

depends/packages/qt.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ $(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(pack
177177
$(package)_config_opts_mingw32 += "QMAKE_CXX = '$($(package)_cxx)'"
178178
$(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cxxflags) $($(package)_cppflags)'"
179179
$(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'"
180+
$(package)_config_opts_mingw32 += "QMAKE_LIB = '$($(package)_ar) rc'"
180181
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
181182
$(package)_config_opts_mingw32 += -pch
182183

0 commit comments

Comments
 (0)