mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
build, qt: Use mkspecs/bitcoin-linux-g++
for all Linux hosts
This commit is contained in:
parent
d61f6677e3
commit
59f2cc23e0
1 changed files with 8 additions and 13 deletions
|
@ -159,18 +159,10 @@ $(package)_config_opts_linux += -dbus-runtime
|
||||||
ifneq ($(LTO),)
|
ifneq ($(LTO),)
|
||||||
$(package)_config_opts_linux += -ltcg
|
$(package)_config_opts_linux += -ltcg
|
||||||
endif
|
endif
|
||||||
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
$(package)_config_opts_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
||||||
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
|
||||||
ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx)))
|
ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx)))
|
||||||
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
|
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
|
||||||
else
|
|
||||||
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
|
||||||
endif
|
endif
|
||||||
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++
|
|
||||||
$(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
||||||
$(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
||||||
$(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
||||||
$(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
||||||
|
|
||||||
$(package)_config_opts_mingw32 = -no-opengl
|
$(package)_config_opts_mingw32 = -no-opengl
|
||||||
$(package)_config_opts_mingw32 += -no-dbus
|
$(package)_config_opts_mingw32 += -no-dbus
|
||||||
|
@ -230,9 +222,7 @@ endef
|
||||||
# 2. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
|
# 2. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
|
||||||
#
|
#
|
||||||
# 3. After making a copy of the mkspec for the linux-arm-gnueabi host, named
|
# 3. After making a copy of the mkspec for the linux-arm-gnueabi host, named
|
||||||
# bitcoin-linux-g++, replace instances of linux-arm-gnueabi with $(host). This
|
# bitcoin-linux-g++, replace tool names with $($($(package)_type)_TOOL).
|
||||||
# way we can generically support hosts like riscv64-linux-gnu, which Qt doesn't
|
|
||||||
# ship a mkspec for. See it's usage in config_opts_* above.
|
|
||||||
#
|
#
|
||||||
# 4. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
|
# 4. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
|
||||||
#
|
#
|
||||||
|
@ -256,7 +246,12 @@ define $(package)_preprocess_cmds
|
||||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
||||||
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
||||||
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
sed -i.old "s|arm-linux-gnueabi-gcc|$($($(package)_type)_CC)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|arm-linux-gnueabi-g++|$($($(package)_type)_CXX)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|arm-linux-gnueabi-ar|$($($(package)_type)_AR)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|arm-linux-gnueabi-objcopy|$($($(package)_type)_OBJCOPY)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|arm-linux-gnueabi-nm|$($($(package)_type)_NM)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
|
sed -i.old "s|arm-linux-gnueabi-strip|$($($(package)_type)_STRIP)|" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
||||||
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
|
|
Loading…
Add table
Reference in a new issue