get own_dir by using dladdr() instead of argv[0]

This commit is contained in:
Solar Flare
2019-11-05 11:39:46 +08:00
committed by soflare
parent 0a8663c845
commit b8fa2a7405
2 changed files with 9 additions and 2 deletions

View File

@ -86,7 +86,7 @@ $(LDSO_PATHNAME): $(LOBJS)
-shared -o $@ $(LOBJS) $(SOCKET_LIBS)
$(ALL_TOOLS): $(OBJS)
$(CC) src/main.o src/common.o $(USER_LDFLAGS) -o $(PXCHAINS)
$(CC) src/main.o src/common.o $(USER_LDFLAGS) $(LIBDL) -o $(PXCHAINS)
.PHONY: all clean install install-config install-libs install-tools