Update 'Obtaining the Oodle library on Linux'
parent
07f406dfc8
commit
9f7613f5ff
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue