From 256f5de3afa1b0c58f32c70c592e1b404ed9c396 Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Wed, 20 Mar 2024 00:30:40 +0200 Subject: [PATCH] Set CXXFLAGS --- recipes/k8/build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/recipes/k8/build.sh b/recipes/k8/build.sh index 53dcfcd93c61cf..cede116364151c 100644 --- a/recipes/k8/build.sh +++ b/recipes/k8/build.sh @@ -19,14 +19,15 @@ patch -p0 < ${RECIPE_DIR}/nodejs-x86_64.patch make -j3 popd -# make it possible to point to the Node sources -sed -i.bak 's/CXXFLAGS=/CXXFLAGS=${CXXFLAGS} /' Makefile -sed -i.bak 's/NODE_SRC=../NODE_SRC?=../' Makefile +# make it possible to set conda build's CXXFLAGS and point to the Node sources +sed -i 's/CXXFLAGS=/CXXFLAGS?=/' Makefile +sed -i 's/NODE_SRC=/NODE_SRC?=/' Makefile +sed -i 's/LIBS=/LIBS?=/' Makefile cat Makefile # Then compile k8 -NODE_SRC=node-v${NODE_VERSION} make -j +NODE_SRC="node-v${NODE_VERSION}" CXXFLAGS="${CXXFLAGS} -std=c++17 -g -O3 -Wall" LIBS="${LDFLAGS} -pthread" make -j mkdir -p $PREFIX/bin cp k8 $PREFIX/bin/k8