Skip to content

Commit 5c1d50e

Browse files
committed
build updates
1 parent f25e36c commit 5c1d50e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ define SET_DEFAULT_FLAGS
127127
else
128128
TOOLCHAIN := LLVM
129129
TOOLCHAINV := $$(shell ${CXX} -dumpversion)
130-
CFLAGS := -pthread -fopenmp -fPIC -std=c17 ${1}
131-
CXXFLAGS := -pthread -fopenmp -fPIC -std=c++20 ${1}
132-
LDFLAGS := -pthread -fopenmp ${2} -lm
130+
CFLAGS := -DBOOST_NO_CXX98_FUNCTION_BASE -pthread -fopenmp -fPIC -std=c17 ${1}
131+
CXXFLAGS := -DBOOST_NO_CXX98_FUNCTION_BASE -pthread -fopenmp -fPIC -std=c++20 ${1}
132+
LDFLAGS := -DBOOST_NO_CXX98_FUNCTION_BASE -pthread -fopenmp ${2} -lm
133133
endif
134134

135135
# Build up our preferred set of flags.

src/Makefile.boilermake

+7
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,18 @@ endef
160160
define ADD_FILE_COPY_RULE
161161
doall: $${TARGET_DIR}/$2
162162
ifeq ($3,executable)
163+
ifeq ($(suffix $(1)),.sh)
163164
$${TARGET_DIR}/$2: $1
164165
@mkdir -p $$(dir $${TARGET_DIR}/$2)
165166
cat $1 |sed s/'version=""'/'version="$(VERSION)"'/g > $${TARGET_DIR}/$2
166167
chmod +x $${TARGET_DIR}/$2
167168
else
169+
$${TARGET_DIR}/$2: $1
170+
@mkdir -p $$(dir $${TARGET_DIR}/$2)
171+
cp $1 $${TARGET_DIR}/$2
172+
chmod +x $${TARGET_DIR}/$2
173+
endif
174+
else
168175
$${TARGET_DIR}/$2: $1
169176
@mkdir -p $$(dir $${TARGET_DIR}/$2)
170177
cp -pf $1 $${TARGET_DIR}/$2

0 commit comments

Comments
 (0)