From 3d45088b4b42b09c440060b79a3b3719f10113d7 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 1 Sep 2011 11:06:23 +0200 Subject: [PATCH] linking libuuid to shared library (required to calculate dependecies with dpkg-shlibdeps) --- sml/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sml/Makefile b/sml/Makefile index 4f50820..6180983 100644 --- a/sml/Makefile +++ b/sml/Makefile @@ -4,6 +4,10 @@ CFLAGS += -I./include/ -fPIC -g -Wall # Available Flags: # _NO_UUID_LIB - compile without uuid lib +ifeq ($(UNAME), Linux) +LIBS = -luuid +endif + LIB_DIR=./lib OBJ_LIB=$(LIB_DIR)/libsml.o DYN_LIB=$(LIB_DIR)/libsml.so @@ -45,7 +49,7 @@ libsml: $(ST_LIB) $(OBJ_LIB) endif $(DYN_LIB): $(OBJS) - $(LD) -shared -o $@ $^ + $(LD) $(LIBS) -shared -o $@ $^ $(OBJ_LIB): $(OBJS) $(LD) -r -o $@ $^