Skip to content

Commit 59f2cc2

Browse files
committed
build, qt: Use mkspecs/bitcoin-linux-g++ for all Linux hosts
1 parent d61f667 commit 59f2cc2

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

depends/packages/qt.mk

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,10 @@ $(package)_config_opts_linux += -dbus-runtime
159159
ifneq ($(LTO),)
160160
$(package)_config_opts_linux += -ltcg
161161
endif
162-
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
163-
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
162+
$(package)_config_opts_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
164163
ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx)))
165164
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
166-
else
167-
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
168165
endif
169-
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++
170-
$(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
171-
$(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
172-
$(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
173-
$(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
174166

175167
$(package)_config_opts_mingw32 = -no-opengl
176168
$(package)_config_opts_mingw32 += -no-dbus
@@ -230,9 +222,7 @@ endef
230222
# 2. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
231223
#
232224
# 3. After making a copy of the mkspec for the linux-arm-gnueabi host, named
233-
# bitcoin-linux-g++, replace instances of linux-arm-gnueabi with $(host). This
234-
# way we can generically support hosts like riscv64-linux-gnu, which Qt doesn't
235-
# ship a mkspec for. See it's usage in config_opts_* above.
225+
# bitcoin-linux-g++, replace tool names with $($($(package)_type)_TOOL).
236226
#
237227
# 4. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
238228
#
@@ -256,7 +246,12 @@ define $(package)_preprocess_cmds
256246
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
257247
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
258248
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
259-
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
249+
sed -i.old "s|arm-linux-gnueabi-gcc|$($($(package)_type)_CC)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
250+
sed -i.old "s|arm-linux-gnueabi-g++|$($($(package)_type)_CXX)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
251+
sed -i.old "s|arm-linux-gnueabi-ar|$($($(package)_type)_AR)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
252+
sed -i.old "s|arm-linux-gnueabi-objcopy|$($($(package)_type)_OBJCOPY)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
253+
sed -i.old "s|arm-linux-gnueabi-nm|$($($(package)_type)_NM)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
254+
sed -i.old "s|arm-linux-gnueabi-strip|$($($(package)_type)_STRIP)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
260255
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
261256
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
262257
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \

0 commit comments

Comments
 (0)