Skip to content

Commit

Permalink
build.sh: drop --version-script linker argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Aug 2, 2023
1 parent 492319a commit e1a44c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,12 @@ if [ $shared ]; then
case $flavour in
macosx) (set -x; ${CC} -dynamiclib -o libblst$dll.dylib \
-all_load libblst.a ${CFLAGS}); exit 0;;
mingw*) sharedlib=blst.dll
mingw*) sharedlib="blst.dll ${TOP}/build/win64/blst.def"
CFLAGS="${CFLAGS} --entry=DllMain ${TOP}/build/win64/dll.c"
CFLAGS="${CFLAGS} -nostdlib -lgcc";;
*) sharedlib=libblst$dll.so;;
esac
echo "{ global: blst_*; BLS12_381_*; local: *; };" > ${TMPDIR}/ld.blst.$$
(set -x; ${CC} -shared -o $sharedlib \
-Wl,--whole-archive,libblst.a,--no-whole-archive ${CFLAGS} \
-Wl,-Bsymbolic,--version-script=${TMPDIR}/ld.blst.$$)
-Wl,-Bsymbolic)
fi

0 comments on commit e1a44c9

Please sign in to comment.