From 3e71c160a163e82aa6858e28ac06953495e7e6d8 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 16 Oct 2006 18:32:55 +0000 Subject: Link with absolute paths to qpid libs so exes work anywhere. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@464614 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp') diff --git a/cpp/Makefile b/cpp/Makefile index 15d73b4bd9..59a2c3b3be 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -82,7 +82,7 @@ UNITTESTS := $(UNITTESTS) $(wildcard $(COMMON_DIRS:%=test/unit/%/*Test.cpp)) # Client library. CLIENT_LIB := lib/libqpid_client.so.1.0 CLIENT_SRC := $(wildcard src/qpid/client/*.cpp) -$(CLIENT_LIB): $(CLIENT_SRC:.cpp=.o) $(COMMON_LIB) +$(CLIENT_LIB): $(CLIENT_SRC:.cpp=.o) $(CURDIR)/$(COMMON_LIB) $(LIB_CMD) $^ all: $(CLIENT_LIB) UNITTESTS := $(UNITTESTS) $(wildcard $(COMMON_DIRS:%=test/unit/%/*Test.cpp)) @@ -90,14 +90,14 @@ UNITTESTS := $(UNITTESTS) $(wildcard $(COMMON_DIRS:%=test/unit/%/*Test.cpp)) # Broker library. BROKER_LIB := lib/libqpid_broker.so.1.0 BROKER_SRC := $(wildcard src/qpid/broker/*.cpp) -$(BROKER_LIB): $(BROKER_SRC:.cpp=.o) $(COMMON_LIB) +$(BROKER_LIB): $(BROKER_SRC:.cpp=.o) $(CURDIR)/$(COMMON_LIB) $(LIB_CMD) $^ all: $(BROKER_LIB) UNITTESTS := $(UNITTESTS) $(wildcard test/unit/qpid/broker/*Test.cpp) # Implicit rule for unit test plugin libraries. %Test.so: %Test.cpp - $(CXX) -shared -o $@ $< $($(LIB)_FLAGS) -Itest/include $(CXXFLAGS) $(LDFLAGS) -lapr-1 -lcppunit $(COMMON_LIB) $(BROKER_LIB) + $(CXX) -shared -o $@ $< $($(LIB)_FLAGS) -Itest/include $(CXXFLAGS) $(LDFLAGS) -lapr-1 -lcppunit $(CURDIR)/$(COMMON_LIB) $(CURDIR)/$(BROKER_LIB) ## Client tests @@ -107,7 +107,7 @@ test/client/%: test/client/%.cpp ## Daemon executable -bin/qpidd: src/qpidd.o $(COMMON_LIB) $(BROKER_LIB) +bin/qpidd: src/qpidd.o $(CURDIR)/$(COMMON_LIB) $(CURDIR)/$(BROKER_LIB) $(CXX) -o $@ $(LDFLAGS) -lapr-1 $^ all: bin/qpidd -- cgit v1.2.1