Skip to content

Commit

Permalink
Enable shared build & fix build script (#157)
Browse files Browse the repository at this point in the history
* add build_shared as per different suggestions

* deploy liboqs if not installed

* create install dir if not present
  • Loading branch information
baentsch authored Mar 4, 2024
1 parent 5c92147 commit e452df2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion oqs-scripts/build_liboqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ PREFIX=${PREFIX:-"`pwd`/oqs"}
cd oqs-scripts/tmp/liboqs
rm -rf build
mkdir build && cd build
cmake .. -GNinja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
cmake .. -GNinja -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
ninja
ninja install
5 changes: 5 additions & 0 deletions oqs-scripts/build_openssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ if [ "x${CIRCLECI}" == "xtrue" ] || [ "x${TRAVIS}" == "xtrue" ]; then
else
make -j
fi
# check whether INSTALL_PREFIX/lib exists to support shared OQS builds
if [ ! -d $INSTALL_PREFIX/lib ]; then
mkdir -p $INSTALL_PREFIX
cp -R oqs/lib $INSTALL_PREFIX
fi
make install

0 comments on commit e452df2

Please sign in to comment.