Skip to content

Commit

Permalink
Set CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-g committed Mar 20, 2024
1 parent 2124462 commit 256f5de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions recipes/k8/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 256f5de

Please sign in to comment.