From 3a24cd30106ee15d4bd8381d0e8291250488413b Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Wed, 10 Jan 2018 23:21:25 +0100 Subject: [PATCH] Installation: Fix soname QA warning in Gentoo Gentoo warns about libs missing a proper soname during QA phase. Let's fix this. Signed-off-by: Kai Krakow --- lib/Makefile | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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