1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

Makefile: Due to VPATH, libcrucible links to hard-coded libuuid path

Due to VPATH and how make resolves source paths, libcrucible.so ends up
with a hard-coded path to link against libuuid.so. Let's fix it by
turning the general rule into an explicit rule for libcrucible.so.

Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
Kai Krakow 2018-02-04 15:55:30 +01:00
parent 8d102abf8b
commit 51108f839d

View File

@ -19,8 +19,6 @@ CRUCIBLE_OBJS = \
time.o \
uuid.o \
libcrucible.so: $(CRUCIBLE_OBJS) .version.o -luuid
include ../makeflags
include ../Defines.mk
@ -44,5 +42,5 @@ include depends.mk
%.o: %.cc ../makeflags
$(CXX) $(CXXFLAGS) -fPIC -o $@ -c $<
%.so:
$(CXX) $(LDFLAGS) -fPIC -shared -Wl,-soname,$@ -o $@ $^
libcrucible.so: $(CRUCIBLE_OBJS) .version.o
$(CXX) $(LDFLAGS) -fPIC -shared -Wl,-soname,$@ -o $@ $^ -luuid