From eabcca788b5cf8b126bd7ba24991c37f952b9a02 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 9 Jun 2011 17:22:38 -0500 Subject: [PATCH] sanlock: fix libwdmd linking --- src/Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 93d0306..9491ce1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -61,8 +61,8 @@ CFLAGS += -D_GNU_SOURCE -g \ -fasynchronous-unwind-tables \ -fdiagnostics-show-option -CMD_LDFLAGS = -lpthread -lrt -laio -lblkid -lsanlock -lwdmd -LIB_LDFLAGS = -lpthread -lrt -laio -lblkid -lwdmd +CMD_LDFLAGS = -lpthread -lrt -laio -lblkid -lsanlock -L../wdmd -lwdmd +LIB_LDFLAGS = -lpthread -lrt -laio -lblkid -L../wdmd -lwdmd all: $(SHLIB_TARGET) $(CMD_TARGET) @@ -73,7 +73,7 @@ $(SHLIB_TARGET): $(LIB_SOURCE) ln -sf $(SHLIB_TARGET) $(LIB_TARGET).so.$(SOMAJOR) $(CMD_TARGET): $(SHLIB_TARGET) $(CMD_SOURCE) - $(CC) $(CFLAGS) $(CMD_LDFLAGS) $(CMD_SOURCE) -o $@ -L. -L../wdmd + $(CC) $(CFLAGS) $(CMD_LDFLAGS) $(CMD_SOURCE) -o $@ -L. clean: rm -f *.o *.so *.so.* $(CMD_TARGET) -- 1.7.1.1