linking libuuid to shared library (required to calculate dependecies with dpkg-shlibdeps)

This commit is contained in:
Steffen Vogel 2011-09-01 11:06:23 +02:00
parent d43e0eb226
commit 3d45088b4b

View file

@ -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 $@ $^