| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: Sat, 06 Jun 2020 09:29:39 +0200 |
| 3 |
Description: Invent soname |
| 4 |
Comment: This is actually not needed since for the moment we just go with the static library only |
| 5 |
|
| 6 |
--- a/Makefile |
| 7 |
+++ b/Makefile |
| 8 |
@@ -20,7 +20,9 @@ debug: CFLAGS+=-DMMAP_ALLOCATOR_DEBUG=1 |
| 9 |
debug: clean all |
| 10 |
|
| 11 |
libmmap_allocator.so: mmap_file_pool.o |
| 12 |
- g++ -shared -o libmmap_allocator.so mmap_file_pool.o |
| 13 |
+ g++ -shared -Wl,-soname,libmmap_allocator.so.0 -o libmmap_allocator.so.0.0.0 mmap_file_pool.o |
| 14 |
+ ln -s libmmap_allocator.so.0.0.0 libmmap_allocator.so.0 |
| 15 |
+ ln -s libmmap_allocator.so.0 libmmap_allocator.so |
| 16 |
|
| 17 |
libmmap_allocator.a: mmap_file_pool.o |
| 18 |
ar r libmmap_allocator.a mmap_file_pool.o |