File tree 5 files changed +4
-21
lines changed
5 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ NO_ZMQ ?=
43
43
NO_USDT ?=
44
44
MULTIPROCESS ?=
45
45
LTO ?=
46
- NO_HARDEN ?=
47
46
FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
48
47
49
48
C_STANDARD ?= c11
@@ -143,13 +142,13 @@ include packages/packages.mk
143
142
#
144
143
build_id: =$(shell env CC='$(build_CC ) ' C_STANDARD='$(C_STANDARD ) ' CXX='$(build_CXX ) ' CXX_STANDARD='$(CXX_STANDARD ) ' \
145
144
AR='$(build_AR ) ' NM='$(build_NM ) ' RANLIB='$(build_RANLIB ) ' STRIP='$(build_STRIP ) ' SHA256SUM='$(build_SHA256SUM ) ' \
146
- DEBUG='$(DEBUG ) ' NO_HARDEN=' $( NO_HARDEN ) ' \
145
+ DEBUG='$(DEBUG ) ' \
147
146
./gen_id '$(BUILD_ID_SALT ) ' 'GUIX_ENVIRONMENT=$(realpath $(GUIX_ENVIRONMENT ) ) ')
148
147
149
148
$(host_arch)_$(host_os)_id: =$(shell env CC='$(host_CC ) ' C_STANDARD='$(C_STANDARD ) ' CXX='$(host_CXX ) ' CXX_STANDARD='$(CXX_STANDARD ) ' \
150
149
CPPFLAGS='$(CPPFLAGS ) ' CFLAGS='$(CFLAGS ) ' CXXFLAGS='$(CXXFLAGS ) ' LDFLAGS='$(LDFLAGS ) ' \
151
150
AR='$(host_AR ) ' NM='$(host_NM ) ' RANLIB='$(host_RANLIB ) ' STRIP='$(host_STRIP ) ' SHA256SUM='$(build_SHA256SUM ) ' \
152
- DEBUG='$(DEBUG ) ' LTO='$(LTO ) ' NO_HARDEN=' $( NO_HARDEN ) ' \
151
+ DEBUG='$(DEBUG ) ' LTO='$(LTO ) ' \
153
152
./gen_id '$(HOST_ID_SALT ) ' 'GUIX_ENVIRONMENT=$(realpath $(GUIX_ENVIRONMENT ) ) ')
154
153
155
154
boost_packages_$(NO_BOOST) = $(boost_packages )
@@ -236,7 +235,6 @@ $(host_prefix)/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_$(fina
236
235
-e 's|@bdb_packages@|$(bdb_packages_)|' \
237
236
-e 's|@sqlite_packages@|$(sqlite_packages_)|' \
238
237
-e 's|@usdt_packages@|$(usdt_packages_)|' \
239
- -e 's|@no_harden@|$(NO_HARDEN)|' \
240
238
-e 's|@multiprocess@|$(MULTIPROCESS)|' \
241
239
$< > $@
242
240
touch $@
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ The following can be set when running make: `make FOO=bar`
127
127
resides in the ` depends ` directory, and the log file is printed out automatically in case
128
128
of build error. After successful build log files are moved along with package archives
129
129
- ` LTO ` : Enable options needed for LTO. Does not add ` -flto ` related options to * FLAGS.
130
- - ` NO_HARDEN=1 ` : Don't use hardening options when building packages
131
130
132
131
If some packages are not built, for example ` make NO_WALLET=1 ` , the appropriate CMake cache
133
132
variables will be set when generating the Bitcoin Core buildsystem. In this case, ` -DENABLE_WALLET=OFF ` .
Original file line number Diff line number Diff line change 3
3
# Usage: env [ CC=... ] [ C_STANDARD=...] [ CXX=... ] [CXX_STANDARD=...] \
4
4
# [ CPPFLAGS=... ] [CFLAGS=...] [CXXFLAGS=...] [LDFLAGS=...] \
5
5
# [ AR=... ] [ NM=... ] [ RANLIB=... ] [ STRIP=... ] [ DEBUG=... ] \
6
- # [ LTO=... ] [ NO_HARDEN=... ] ./gen_id [ID_SALT]...
6
+ # [ LTO=... ] ./gen_id [ID_SALT]...
7
7
#
8
8
# Prints to stdout a SHA256 hash representing the current toolset, used by
9
9
# depends/Makefile as a build id for caching purposes (detecting when the
93
93
echo " LTO=${LTO} "
94
94
echo " END LTO"
95
95
96
- echo " BEGIN NO_HARDEN"
97
- echo " NO_HARDEN=${NO_HARDEN} "
98
- echo " END NO_HARDEN"
99
-
100
96
echo " END ALL"
101
97
) | if [ -n " $DEBUG " ] && command -v tee > /dev/null 2>&1 ; then
102
98
# When debugging and `tee` is available, output the preimage to stderr
Original file line number Diff line number Diff line change @@ -15,12 +15,8 @@ define $(package)_set_vars
15
15
$(package ) _config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
16
16
$(package ) _config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
17
17
$(package ) _cflags += -fdebug-prefix-map=$($(package ) _extract_dir) =/usr -fmacro-prefix-map=$($(package ) _extract_dir) =/usr
18
- $(package ) _cppflags += -D_GNU_SOURCE
18
+ $(package ) _cppflags += -D_GNU_SOURCE -D_FORTIFY_SOURCE=3
19
19
$(package ) _cppflags_mingw32=-D_WIN32_WINNT=0x0A00
20
-
21
- ifeq ($(NO_HARDEN ) ,)
22
- $(package ) _cppflags+=-D_FORTIFY_SOURCE=3
23
- endif
24
20
endef
25
21
26
22
define $(package)_preprocess_cmds
Original file line number Diff line number Diff line change @@ -146,12 +146,6 @@ else()
146
146
set (WITH_USDT ON CACHE BOOL "" )
147
147
endif ()
148
148
149
- if ("@no_harden@" )
150
- set (ENABLE_HARDENING OFF CACHE BOOL "" )
151
- else ()
152
- set (ENABLE_HARDENING ON CACHE BOOL "" )
153
- endif ()
154
-
155
149
if ("@multiprocess@" STREQUAL "1" )
156
150
set (WITH_MULTIPROCESS ON CACHE BOOL "" )
157
151
set (Libmultiprocess_ROOT "${CMAKE_CURRENT_LIST_DIR} " CACHE PATH "" )
You can’t perform that action at this time.
0 commit comments