Skip to content

Commit c46777e

Browse files
authored
Merge pull request #38 from DeckerSU/static-dev
v0.7.1-beta3: static-dev -> static
2 parents 8479430 + 49646e3 commit c46777e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1386
-718
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Install dependencies:
4242
sudo apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python3-setuptools libtinfo5 xorriso
4343
```
4444

45-
Place prepared SDK file `Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz` in repo root, use `build-mac-cross.sh` script to build.
45+
Place prepared SDK file `Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz` in repo root, use `build-mac-cross.sh` script to build.
4646

4747
#### OSX (Native)
4848
Ensure you have [brew](https://brew.sh) and Command Line Tools installed.

build-aux/m4/bitcoin_qt.m4

Lines changed: 152 additions & 273 deletions
Large diffs are not rendered by default.

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 7)
55
define(_CLIENT_VERSION_REVISION, 1)
6-
define(_CLIENT_VERSION_BUILD, 1)
6+
define(_CLIENT_VERSION_BUILD, 2)
77
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
88
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
99
define(_CLIENT_VERSION_IS_RELEASE, true)
10-
define(_COPYRIGHT_YEAR, 2021)
10+
define(_COPYRIGHT_YEAR, 2022)
1111
define(_COPYRIGHT_HOLDERS, "The %s developers")
1212
define(_COPYRIGHT_HOLDERS_SUBSTITUTION, "Ocean and Decker")
1313

depends/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
124124
-e 's|@no_wallet@|$(NO_WALLET)|' \
125125
-e 's|@no_upnp@|$(NO_UPNP)|' \
126126
-e 's|@debug@|$(DEBUG)|' \
127+
-e 's|@cross_toolchain_path@|$(toolchain_path)|' \
127128
$< > $@
128129
$(AT)touch $@
129130

@@ -157,7 +158,7 @@ install: check-packages $(host_prefix)/share/config.site
157158
download-one: check-sources $(all_sources)
158159

159160
download-osx:
160-
@$(MAKE) -s HOST=x86_64-apple-darwin18 download-one
161+
@$(MAKE) -s HOST=x86_64-apple-darwin19 download-one
161162
download-linux:
162163
@$(MAKE) -s HOST=x86_64-unknown-linux-gnu download-one
163164
download-win:

depends/builders/darwin.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
build_darwin_CC:=$(shell xcrun -f clang) --sysroot $(shell xcrun --show-sdk-path)
2-
build_darwin_CXX:=$(shell xcrun -f clang++) --sysroot $(shell xcrun --show-sdk-path)
1+
build_darwin_CC:=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
2+
build_darwin_CXX:=$(shell xcrun -f clang++) -isysroot$(shell xcrun --show-sdk-path)
33
build_darwin_AR:=$(shell xcrun -f ar)
44
build_darwin_RANLIB:=$(shell xcrun -f ranlib)
55
build_darwin_STRIP:=$(shell xcrun -f strip)
@@ -10,8 +10,8 @@ build_darwin_SHA256SUM=shasum -a 256
1010
build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
1111

1212
#darwin host on darwin builder. overrides darwin host preferences.
13-
darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(shell xcrun --show-sdk-path)
14-
darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) -stdlib=libc++ --sysroot $(shell xcrun --show-sdk-path)
13+
darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION) -isysroot$(shell xcrun --show-sdk-path)
14+
darwin_CXX:=$(shell xcrun -f clang++) -mmacosx-version-min=$(OSX_MIN_VERSION) -stdlib=libc++ -isysroot$(shell xcrun --show-sdk-path)
1515
darwin_AR:=$(shell xcrun -f ar)
1616
darwin_RANLIB:=$(shell xcrun -f ranlib)
1717
darwin_STRIP:=$(shell xcrun -f strip)

depends/config.site.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
depends_prefix="`dirname ${ac_site_file}`/.."
22

33
cross_compiling=maybe
4+
cross_toolchain_path=@cross_toolchain_path@
45
host_alias=@HOST@
56
ac_tool_prefix=${host_alias}-
67

depends/hosts/darwin.mk

Lines changed: 90 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,53 @@
1-
OSX_MIN_VERSION=10.12
2-
OSX_SDK_VERSION=10.15.1
3-
XCODE_VERSION=11.3.1
4-
XCODE_BUILD_ID=11C505
5-
LD64_VERSION=530
1+
OSX_MIN_VERSION=10.15
2+
OSX_SDK_VERSION=10.15.6
3+
XCODE_VERSION=12.1
4+
XCODE_BUILD_ID=12A7403
5+
LD64_VERSION=609
66

77
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers
88

9+
darwin_native_binutils=native_cctools
10+
11+
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
12+
# FORCE_USE_SYSTEM_CLANG is empty, so we use our depends-managed, pinned clang
13+
# from llvm.org
14+
15+
# Clang is a dependency of native_cctools when FORCE_USE_SYSTEM_CLANG is empty
16+
darwin_native_toolchain=native_cctools
17+
18+
clang_prog=$(build_prefix)/bin/clang
19+
clangxx_prog=$(clang_prog)++
20+
21+
clang_resource_dir=$(build_prefix)/lib/clang/$(native_clang_version)
22+
else
23+
# FORCE_USE_SYSTEM_CLANG is non-empty, so we use the clang from the user's
24+
# system
25+
26+
darwin_native_toolchain=
27+
28+
# We can't just use $(shell command -v clang) because GNU Make handles builtins
29+
# in a special way and doesn't know that `command` is a POSIX-standard builtin
30+
# prior to 1af314465e5dfe3e8baa839a32a72e83c04f26ef, first released in v4.2.90.
31+
# At the time of writing, GNU Make v4.2.1 is still being used in supported
32+
# distro releases.
33+
#
34+
# Source: https://lists.gnu.org/archive/html/bug-make/2017-11/msg00017.html
35+
clang_prog=$(shell $(SHELL) $(.SHELLFLAGS) "command -v clang")
36+
clangxx_prog=$(shell $(SHELL) $(.SHELLFLAGS) "command -v clang++")
37+
38+
clang_resource_dir=$(shell clang -print-resource-dir)
39+
endif
40+
41+
cctools_TOOLS=AR RANLIB STRIP NM LIBTOOL OTOOL INSTALL_NAME_TOOL
42+
43+
# Make-only lowercase function
44+
lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
45+
46+
# For well-known tools provided by cctools, make sure that their well-known
47+
# variable is set to the full path of the tool, just like how AC_PATH_{TOO,PROG}
48+
# would.
49+
$(foreach TOOL,$(cctools_TOOLS),$(eval darwin_$(TOOL) = $$(build_prefix)/bin/$$(host)-$(call lc,$(TOOL))))
50+
951
# Flag explanations:
1052
#
1153
# -mlinker-version
@@ -18,18 +60,54 @@ OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-
1860
# Explicitly point to our binaries (e.g. cctools) so that they are
1961
# ensured to be found and preferred over other possibilities.
2062
#
21-
# -nostdinc++ -isystem $(OSX_SDK)/usr/include/c++/v1
63+
# -stdlib=libc++ -stdlib++-isystem$(OSX_SDK)/usr/include/c++/v1
2264
#
2365
# Forces clang to use the libc++ headers from our SDK and completely
2466
# forget about the libc++ headers from the standard directories
2567
#
26-
# TODO: Once we start requiring a clang version that has the
27-
# -stdlib++-isystem<directory> flag first introduced here:
28-
# https://reviews.llvm.org/D64089, we should use that instead. Read the
29-
# differential summary there for more details.
68+
# -Xclang -*system<path_a> \
69+
# -Xclang -*system<path_b> \
70+
# -Xclang -*system<path_c> ...
71+
#
72+
# Adds path_a, path_b, and path_c to the bottom of clang's list of
73+
# include search paths. This is used to explicitly specify the list of
74+
# system include search paths and its ordering, rather than rely on
75+
# clang's autodetection routine. This routine has been shown to:
76+
# 1. Fail to pickup libc++ headers in $SYSROOT/usr/include/c++/v1
77+
# when clang was built manually (see: https://github.com/bitcoin/bitcoin/pull/17919#issuecomment-656785034)
78+
# 2. Fail to pickup C headers in $SYSROOT/usr/include when
79+
# C_INCLUDE_DIRS was specified at configure time (see: https://gist.github.com/dongcarl/5cdc6990b7599e8a5bf6d2a9c70e82f9)
80+
#
81+
# Talking directly to cc1 with -Xclang here grants us access to specify
82+
# more granular categories for these system include search paths, and we
83+
# can use the correct categories that these search paths would have been
84+
# placed in if the autodetection routine had worked correctly. (see:
85+
# https://gist.github.com/dongcarl/5cdc6990b7599e8a5bf6d2a9c70e82f9#the-treatment)
86+
#
87+
# Furthermore, it places these search paths after any "non-Xclang"
88+
# specified search paths. This prevents any additional clang options or
89+
# environment variables from coming after or in between these system
90+
# include search paths, as that would be wrong in general but would also
91+
# break #include_next's.
3092
#
31-
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -B$(build_prefix)/bin
32-
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++ -mlinker-version=$(LD64_VERSION) -B$(build_prefix)/bin -nostdinc++ -isystem $(OSX_SDK)/usr/include/c++/v1
93+
darwin_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
94+
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
95+
-u LIBRARY_PATH \
96+
$(clang_prog) --target=$(host) -mmacosx-version-min=$(OSX_MIN_VERSION) \
97+
-B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \
98+
-isysroot$(OSX_SDK) \
99+
-Xclang -internal-externc-isystem$(clang_resource_dir)/include \
100+
-Xclang -internal-externc-isystem$(OSX_SDK)/usr/include
101+
darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
102+
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
103+
-u LIBRARY_PATH \
104+
$(clangxx_prog) --target=$(host) -mmacosx-version-min=$(OSX_MIN_VERSION) \
105+
-B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \
106+
-isysroot$(OSX_SDK) \
107+
-stdlib=libc++ \
108+
-stdlib++-isystem$(OSX_SDK)/usr/include/c++/v1 \
109+
-Xclang -internal-externc-isystem$(clang_resource_dir)/include \
110+
-Xclang -internal-externc-isystem$(OSX_SDK)/usr/include
33111

34112
darwin_CFLAGS=-pipe
35113
darwin_CXXFLAGS=$(darwin_CFLAGS)
@@ -40,11 +118,4 @@ darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
40118
darwin_debug_CFLAGS=-O1
41119
darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)
42120

43-
darwin_native_binutils=native_cctools
44-
ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),)
45-
darwin_native_toolchain=native_cctools
46-
else
47-
darwin_native_toolchain=
48-
endif
49-
50121
darwin_cmake_system=Darwin

depends/packages/dummy.mk

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# dummy package to learn how recipes work
2+
#
3+
# Following command will build only this package:
4+
# make -C ${PWD}/depends HOST=$(depends/config.guess) -j$(nproc --all) dummy
5+
# add V=1 for verbose output
6+
#
7+
package=dummy
8+
$(package)_version=1.0.0
9+
$(package)_download_path=https://github.com/DeckerSU/dummy-package/archive/refs/tags/
10+
$(package)_download_file=v$($(package)_version).tar.gz
11+
$(package)_file_name=$(package)-$($(package)_version).tar.gz
12+
$(package)_sha256_hash=b56360df29a29205f36dfe888d320369b7c859ca205376a9ca25180a7c931796
13+
14+
# optional variables
15+
16+
# $(package)_build_subdir # cd to this dir before running configure/build/stage commands.
17+
# $(package)_download_file # The file-name of the upstream source if it differs from how it should be stored locally.
18+
# $(package)_dependencies # Names of any other packages that this one depends on.
19+
# $(package)_patches # Filenames of any patches needed to build the package
20+
# $(package)_extra_sources # Any extra files that will be fetched via $(package)_fetch_cmds.
21+
22+
## Build Variables:
23+
24+
# most variables can be prefixed with the host, architecture, or both
25+
# Universal: $(package)_cc=gcc
26+
# Linux only: $(package)_linux_cc=gcc
27+
# x86_64 only: $(package)_x86_64_cc = gcc
28+
# x86_64 linux only: $(package)_x86_64_linux_cc = gcc
29+
30+
#
31+
# *_env variables are used to add environment variables to the respective commands
32+
33+
# Operations order:
34+
#
35+
# 1. Fetching dummy...
36+
# 2. Extracting dummy...
37+
# 3. Preprocessing dummy...
38+
# 4. Configuring dummy...
39+
# 5. Building dummy...
40+
# 6. Staging dummy...
41+
# 7. Postprocessing dummy...
42+
# 8. Caching dummy...
43+
44+
# https://unix.stackexchange.com/questions/269077/tput-setaf-color-table-how-to-determine-color-codes
45+
# https://stackoverflow.com/questions/4879592/whats-the-difference-between-and-in-makefile # := and = difference
46+
# https://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors
47+
48+
green:=$(shell tput setaf 10)
49+
red:=$(shell tput setaf 9)
50+
yellow:=$(shell tput setaf 11)
51+
grey:=$(shell tput setaf 8)
52+
reset:=$(shell tput sgr0)
53+
$(info $(green)[ Dummy ]$(reset) Let's build the package ...)
54+
55+
# Example of making tool(s) variables
56+
clang_prog=$(build_prefix)/bin/clang
57+
clangxx_prog=$(clang_prog)++
58+
cctools_TOOLS=AR RANLIB STRIP NM LIBTOOL OTOOL INSTALL_NAME_TOOL
59+
lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
60+
$(foreach TOOL,$(cctools_TOOLS),$(eval special_$(TOOL) = $$(build_prefix)/bin/$$(host)-$(call lc,$(TOOL))))
61+
$(foreach TOOL,$(cctools_TOOLS),$(info $(green)[ Dummy ]$(reset) $$(special_$(TOOL))=$(special_$(TOOL))))
62+
63+
define $(package)_set_vars
64+
$(package)_conf_tool=./configure
65+
$(package)_config_opts=--common-conf-option
66+
$(package)_config_opts_linux=--just-a-linux-conf-option
67+
$(package)_config_opts_mingw32=--special-windows-conf-option
68+
endef
69+
70+
define $(package)_preprocess_cmds
71+
echo "$(grey)--------------------------------------------$(reset)" && \
72+
echo "Current directory: $(PWD)" && \
73+
echo "Global variables: " && \
74+
echo "$(grey)build_prefix:${reset} $(build_prefix)" && \
75+
echo "Path variables: " && \
76+
echo "$(grey)$(package)_staging_dir:${reset} $($(package)_staging_dir)" && \
77+
echo "$(grey)$(package)_staging_prefix_dir:${reset} $($(package)_staging_prefix_dir)" && \
78+
echo "$(grey)$(package)_extract_dir:${reset} $($(package)_extract_dir)" && \
79+
echo "$(grey)$(package)_build_dir:${reset} $($(package)_build_dir)" && \
80+
echo "$(grey)$(package)_build_subdir:${reset} $($(package)_build_subdir)" && \
81+
echo "$(grey)$(package)_patch_dir:${reset} $($(package)_patch_dir)" && \
82+
echo "Build variables: " && \
83+
echo "$(grey)$(package)_cc :${reset} $($(package)_cc)" && \
84+
echo "$(grey)$(package)_cxx :${reset} $($(package)_cxx)" && \
85+
echo "$(grey)$(package)_objc :${reset} $($(package)_objc)" && \
86+
echo "$(grey)$(package)_objcxx :${reset} $($(package)_objcxx)" && \
87+
echo "$(grey)$(package)_ar :${reset} $($(package)_ar)" && \
88+
echo "$(grey)$(package)_ranlib :${reset} $($(package)_ranlib)" && \
89+
echo "$(grey)$(package)_libtool :${reset} $($(package)_libtool)" && \
90+
echo "$(grey)$(package)_nm :${reset} $($(package)_nm)" && \
91+
echo "$(grey)$(package)_cflags :${reset} $($(package)_cflags)" && \
92+
echo "$(grey)$(package)_cxxflags :${reset} $($(package)_cxxflags)" && \
93+
echo "$(grey)$(package)_ldflags :${reset} $($(package)_ldflags)" && \
94+
echo "$(grey)$(package)_cppflags :${reset} $($(package)_cppflags)" && \
95+
echo "$(grey)$(package)_config_env :${reset} $($(package)_config_env)" && \
96+
echo "$(grey)$(package)_build_env :${reset} $($(package)_build_env)" && \
97+
echo "$(grey)$(package)_stage_env :${reset} $($(package)_stage_env)" && \
98+
echo "$(grey)$(package)_build_opts :${reset} $($(package)_build_opts)" && \
99+
echo "$(grey)$(package)_config_opts:${reset} $($(package)_config_opts)" && \
100+
echo "$(grey)--------------------------------------------$(reset)"
101+
endef
102+
103+
#
104+
define $(package)_config_cmds
105+
echo "$(yellow)$($(package)_conf_tool) $($(package)_config_opts)$(reset)"
106+
endef
107+
108+
define $(package)_build_cmds
109+
echo "$(yellow)$(MAKE)$(reset)"
110+
endef
111+
112+
# Most autotools projects can be properly staged using:
113+
# $(MAKE) DESTDIR=$($(package)_staging_dir) install
114+
#
115+
# For manual staging, for example, if we just want to stage
116+
# 2 files, we can do it with the following way by copying them
117+
# to $($(package)_staging_prefix_dir)
118+
#
119+
define $(package)_stage_cmds
120+
cp LICENSE $($(package)_staging_prefix_dir) && \
121+
cp README.md $($(package)_staging_prefix_dir)
122+
endef

depends/packages/googletest.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ else
2727

2828
ifeq ($(build_os)$(host_os),linuxdarwin) # cross-compile for MacOS from Linux
2929
define $(package)_build_cmds
30-
$(MAKE) -C googlemock/make CC="$(build_prefix)/bin/$($(package)_cc)" CXX="$(build_prefix)/bin/$($(package)_cxx)" AR="$(build_prefix)/bin/$($(package)_ar)" CXXFLAGS="$($(package)_cxxflags)" gmock.a && \
31-
$(MAKE) -C googletest/make CC="$(build_prefix)/bin/$($(package)_cc)" CXX="$(build_prefix)/bin/$($(package)_cxx)" AR="$(build_prefix)/bin/$($(package)_ar)" CXXFLAGS="$($(package)_cxxflags)" gtest.a
30+
$(MAKE) -C googlemock/make CC="$(darwin_CC)" CXX="$(darwin_CXX)" AR="$(darwin_AR)" CXXFLAGS="$($(package)_cxxflags)" gmock.a && \
31+
$(MAKE) -C googletest/make CC="$(darwin_CC)" CXX="$(darwin_CXX)" AR="$(darwin_AR)" CXXFLAGS="$($(package)_cxxflags)" gtest.a
3232
endef
3333
else
3434
define $(package)_build_cmds

depends/packages/libcurl.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ ifeq ($(build_os),linux)
2727
define $(package)_set_vars
2828
$(package)_config_env+=LD_LIBRARY_PATH="$(host_prefix)/lib" PKG_CONFIG_LIBDIR="$(host_prefix)/lib/pkgconfig"
2929
$(package)_config_env+=CPPFLAGS="-I$(host_prefix)/include -fPIC" LDFLAGS="-L$(host_prefix)/lib -Wl,-undefined -Wl,dynamic_lookup" # https://github.com/ddnet/ddnet/commit/e8bd8459a6f556594f48f33f4d145033bc89d46f
30-
$(package)_config_env+=CC="$(build_prefix)/bin/$($(package)_cc)" CXX="$(build_prefix)/bin/$($(package)_cxx)"
31-
$(package)_config_env+=AR="$(build_prefix)/bin/$($(package)_ar)" RANLIB="$(build_prefix)/bin/$($(package)_ranlib)"
30+
$(package)_config_env+=CC="$(darwin_CC)" CXX="$(darwin_CXX)"
31+
$(package)_config_env+=AR="$(darwin_AR)" RANLIB="$(darwin_RANLIB)"
3232
$(package)_config_opts+=--host=$(canonical_host) --without-libpsl --without-libgsasl --disable-ldap --disable-tls-srp
3333
endef
3434
endif

depends/packages/libsnark.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else
2929
else
3030
# cross-compile mac
3131
define $(package)_build_cmds
32-
CC="$(build_prefix)/bin/$($(package)_cc)" CXX="$(build_prefix)/bin/$($(package)_cxx)" \
32+
CC="$(darwin_CC)" CXX="$(darwin_CXX)" \
3333
CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64 -g "
3434
endef
3535
endif

depends/packages/libxcb.mk

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,20 @@ $(package)_config_opts += --disable-composite --disable-damage --disable-dpms
1515
$(package)_config_opts += --disable-dri2 --disable-dri3 --disable-glx
1616
$(package)_config_opts += --disable-present --disable-randr --disable-record
1717
$(package)_config_opts += --disable-render --disable-resource --disable-screensaver
18-
$(package)_config_opts += --disable-shape --disable-shm --disable-sync
18+
$(package)_config_opts += --disable-shape --disable-sync
1919
$(package)_config_opts += --disable-xevie --disable-xfixes --disable-xfree86-dri
20-
$(package)_config_opts += --disable-xinerama --disable-xinput --disable-xkb
20+
$(package)_config_opts += --disable-xinerama --disable-xinput
2121
$(package)_config_opts += --disable-xprint --disable-selinux --disable-xtest
2222
$(package)_config_opts += --disable-xv --disable-xvmc
2323
endef
2424

2525
define $(package)_preprocess_cmds
26-
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux &&\
26+
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux && \
2727
sed "s/pthread-stubs//" -i configure
2828
endef
2929

30-
# Don't install xcb headers to the default path in order to work around a qt
31-
# build issue: https://bugreports.qt.io/browse/QTBUG-34748
32-
# When using qt's internal libxcb, it may end up finding the real headers in
33-
# depends staging. Use a non-default path to avoid that.
34-
3530
define $(package)_config_cmds
36-
$($(package)_autoconf) --includedir=$(host_prefix)/include/xcb-shared
31+
$($(package)_autoconf)
3732
endef
3833

3934
define $(package)_build_cmds
@@ -45,5 +40,5 @@ define $(package)_stage_cmds
4540
endef
4641

4742
define $(package)_postprocess_cmds
48-
rm -rf share/man share/doc lib/*.la
43+
rm -rf share lib/*.la
4944
endef

0 commit comments

Comments
 (0)