diff --git a/lib/Makefile b/lib/Makefile index a2d607d..5aaf468 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -33,4 +33,4 @@ depends.mk: *.cc $(CXX) $(CXXFLAGS) -o $@ -c $< libcrucible.so: $(OBJS) Makefile - $(CXX) $(LDFLAGS) -o $@ $(OBJS) -shared -luuid + $(CXX) $(LDFLAGS) -o $@ $(OBJS) -shared -Wl,-soname,$@ -luuid diff --git a/src/Makefile b/src/Makefile index d96fd96..3a69c9a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,7 +8,7 @@ all: $(PROGRAMS) depends.mk include ../makeflags LIBS = -lcrucible -lpthread -LDFLAGS = -L../lib -Wl,-rpath=$(shell realpath ../lib) +LDFLAGS = -L../lib depends.mk: Makefile *.cc for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done > depends.mk.new