Tag Info

New answers tagged

1

Set rpath to $ORIGIN/libs and set soname to libsharedobject rather than libs/libsharedobject. My makefile is as follows. all: my_program libs/libmysharedobject.so: Makefile success.c gcc -fPIC -shared -Wl,-soname,libmysharedobject.so \ -o libs/libmysharedobject.so success.c my_program: Makefile libs/libmysharedobject.so gcc -o my_program main.c ...



Top 50 recent answers are included