Skip to content

Commit e452df2

Browse files
authored
Enable shared build & fix build script (#157)
* add build_shared as per different suggestions * deploy liboqs if not installed * create install dir if not present
1 parent 5c92147 commit e452df2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

oqs-scripts/build_liboqs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ PREFIX=${PREFIX:-"`pwd`/oqs"}
1414
cd oqs-scripts/tmp/liboqs
1515
rm -rf build
1616
mkdir build && cd build
17-
cmake .. -GNinja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
17+
cmake .. -GNinja -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${PREFIX}
1818
ninja
1919
ninja install

oqs-scripts/build_openssh.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ if [ "x${CIRCLECI}" == "xtrue" ] || [ "x${TRAVIS}" == "xtrue" ]; then
3333
else
3434
make -j
3535
fi
36+
# check whether INSTALL_PREFIX/lib exists to support shared OQS builds
37+
if [ ! -d $INSTALL_PREFIX/lib ]; then
38+
mkdir -p $INSTALL_PREFIX
39+
cp -R oqs/lib $INSTALL_PREFIX
40+
fi
3641
make install

0 commit comments

Comments
 (0)