Update 'Obtaining the Oodle library on Linux'

Lucas Schwiderski 2023-01-01 18:05:27 +01:00
parent 07f406dfc8
commit 9f7613f5ff

@ -94,10 +94,14 @@ find $TEMP -type f -exec ./elf_unhide.py --symfile symbols.txt "{}" \;
ar rcs $NEW_ARCHIVE $TEMP/*.o
rm -r $TEMP
echo "$(basefile $NEW_ARCHIVE) made"
echo "$(basename $NEW_ARCHIVE) made"
```
**Create the shared library**:
Create the files above, as well as a file `symbols.txt`, where each line lists one symbol you want to make available for linking.
Then run:
```shell
./elf_unhide.sh liboo2corelinux64.a liboo2corelinux64_out.a
g++ -shared -o liboo2corelinux64.so -Wl,--whole-archive ./liboo2corelinux64_out.a -Wl,--no-whole-archive