Skip to content

Commit

Permalink
Rebuild linux with -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Bruce committed May 21, 2024
1 parent 081f33d commit 8f0b6ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/build-wrapper-liboqs-openssl-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ esac
[ $os_is_macos -eq 0 -a $os_is_linux -eq 0 -a $os_is_windows -eq 0 ] && echo 'CANNOT IDENTIFY OS' && exit 1

# determine our preferred targets
wants_android=0 ; [ $os_is_macos -eq 1 ] && wants_android=1
wants_apple=0 ; [ $os_is_macos -eq 1 ] && wants_apple=1
wants_android=0 ; #[ $os_is_macos -eq 1 ] && wants_android=1
wants_apple=0 ; #[ $os_is_macos -eq 1 ] && wants_apple=1
wants_linux=0 ; [ $os_is_linux -eq 1 ] && wants_linux=1
wants_windows=0 ; [ $os_is_windows -eq 1 ] && wants_windows=1
wants_windows=0 ; #[ $os_is_windows -eq 1 ] && wants_windows=1

# set the liboqs directory if unset
[ x"$the_liboqs_dir" = x ] && the_liboqs_dir="`realpath "$the_top_dir"/../liboqs`"
Expand Down Expand Up @@ -328,6 +328,7 @@ function build_linux_variant {
-DOQS_PROVIDER_BUILD_STATIC=ON \
-DOQS_KEM_ENCODERS=ON \
-DOPENSSL_USE_STATIC_LIBS=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DOPENSSL_ROOT_DIR="$l_openssl_plat_dir" \
-DOPENSSL_INCLUDE_DIR="$l_openssl_plat_dir/include" \
-DOPENSSL_SSL_LIBRARY="$l_openssl_plat_dir/lib64/libssl.a" \
Expand Down

0 comments on commit 8f0b6ed

Please sign in to comment.