@@ -159,18 +159,10 @@ $(package)_config_opts_linux += -dbus-runtime
159
159
ifneq ($(LTO ) ,)
160
160
$(package)_config_opts_linux += -ltcg
161
161
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++
164
163
ifneq (,$(findstring -stdlib=libc++,$($(1 ) _cxx) ) )
165
164
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
166
- else
167
- $(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
168
165
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++
174
166
175
167
$(package ) _config_opts_mingw32 = -no-opengl
176
168
$(package ) _config_opts_mingw32 += -no-dbus
@@ -230,9 +222,7 @@ endef
230
222
# 2. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
231
223
#
232
224
# 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).
236
226
#
237
227
# 4. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
238
228
#
@@ -256,7 +246,12 @@ define $(package)_preprocess_cmds
256
246
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
257
247
cp -f $($(package ) _patch_dir) /mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
258
248
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 && \
260
255
echo "!host_build: QMAKE_CFLAGS += $($(package ) _cflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
261
256
echo "!host_build: QMAKE_CXXFLAGS += $($(package ) _cxxflags) $($(package ) _cppflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
262
257
echo "!host_build: QMAKE_LFLAGS += $($(package ) _ldflags) " >> qtbase/mkspecs/common/gcc-base.conf && \
0 commit comments