From 7ebf4f4d4a6c3464ee82b63efda8fc65555a7c4c Mon Sep 17 00:00:00 2001 From: "Patrick M. Niedzielski" Date: Wed, 13 Dec 2023 12:57:57 -0500 Subject: [PATCH] Build ntf-core without `-Werror` Occasional changes to ntf-core result in build errors, because we build ntf-core with warnings as errors. This patch copies the relevant changes from the Python SDK repository to avoid this, as well as to build fewer unnecessary parts of ntf-core. Signed-off-by: Patrick M. Niedzielski --- bin/build-darwin.sh | 6 +++++- bin/build-ubuntu.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/build-darwin.sh b/bin/build-darwin.sh index 8ea8229626..94b9e0629c 100755 --- a/bin/build-darwin.sh +++ b/bin/build-darwin.sh @@ -69,7 +69,11 @@ fi if [ ! -e "${DIR_BUILD}/ntf/.complete" ]; then # Build and install NTF pushd "${DIR_THIRDPARTY}/ntf-core" - ./configure --prefix "${DIR_INSTALL}" --output "${DIR_BUILD}/ntf" + ./configure --prefix "${DIR_INSTALL}" \ + --output "${DIR_BUILD}/ntf" \ + --without-warnings-as-errors \ + --without-usage-examples \ + --without-applications make -j 16 make install popd diff --git a/bin/build-ubuntu.sh b/bin/build-ubuntu.sh index 750df6f741..c972bd174c 100755 --- a/bin/build-ubuntu.sh +++ b/bin/build-ubuntu.sh @@ -118,7 +118,11 @@ fi if [ ! -e "${DIR_BUILD}/ntf/.complete" ]; then # Build and install NTF pushd "${DIR_THIRDPARTY}/ntf-core" - ./configure --prefix "${DIR_INSTALL}" --output "${DIR_BUILD}/ntf" + ./configure --prefix "${DIR_INSTALL}" \ + --output "${DIR_BUILD}/ntf" \ + --without-warnings-as-errors \ + --without-usage-examples \ + --without-applications make -j 16 make install popd