diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-04-16 10:45:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 10:45:04 +0200 |
| commit | b5d2dd617d3ac62d665bcce8a49de4c61215f6d4 (patch) | |
| tree | 4e06acc8a9a4c01325f8a312722aec19671fde5e | |
| parent | e24315eed892aeb6c53da78c415455a80ccdf5e5 (diff) | |
| parent | 8d951ab7f18096393b192f7cfe175c0dee4b64ba (diff) | |
Merge pull request #2462 from lefp/master
Fix: header directories in Unix build script
| -rwxr-xr-x | build_odin.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_odin.sh b/build_odin.sh index 8f5ce0525..62943732f 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -4,12 +4,14 @@ set -eu : ${CXX=clang++} : ${CPPFLAGS=} : ${CXXFLAGS=} +: ${INCLUDE_DIRECTORIES=} : ${LDFLAGS=} : ${ODIN_VERSION=dev-$(date +"%Y-%m")} : ${GIT_SHA=} CPPFLAGS="$CPPFLAGS -DODIN_VERSION_RAW=\"$ODIN_VERSION\"" CXXFLAGS="$CXXFLAGS -std=c++14" +INCLUDE_DIRECTORIES="$INCLUDE_DIRECTORIES -Isrc/" LDFLAGS="$LDFLAGS -pthread -lm -lstdc++" if [ -d ".git" ]; then @@ -146,7 +148,7 @@ build_odin() { esac set -x - $CXX src/main.cpp src/libtommath.cpp $DISABLED_WARNINGS $CPPFLAGS $CXXFLAGS $EXTRAFLAGS $LDFLAGS -o odin + $CXX src/main.cpp src/libtommath.cpp $DISABLED_WARNINGS $CPPFLAGS $CXXFLAGS $INCLUDE_DIRECTORIES $EXTRAFLAGS $LDFLAGS -o odin set +x } |