dect
/
libdect
Archived
13
0
Fork 0

build: add library build directory to runtime search path

Make life easier by searching in the build directory first.

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2009-05-20 07:49:12 +02:00
parent 9b7cb201bf
commit 5ca6fa98eb
3 changed files with 3 additions and 2 deletions

View File

@ -75,6 +75,7 @@ $(eval $(call generic_template,$(1)))
$(SUBDIR)lib$(1).so: $$($(1)-extra-targets) $$($(1)-obj)
@echo -e " LD\t\t$$@"
$$(CC) -shared -Wl,-soname,lib$(1).so.0 $$($(1)-obj) $$(LDFLAGS) -o $$@
$(LN_S) -f lib$(1).so $$@.0
all_targets += $(SUBDIR)lib$(1).so
$(1)-install:

View File

@ -1,4 +1,4 @@
LDFLAGS += -Lsrc -ldect
LDFLAGS += -Wl,-rpath $(PWD)/src -Lsrc -ldect
PROGRAMS += test mm discover
test-destdir := usr/bin

2
src/.gitignore vendored
View File

@ -1 +1 @@
libdect.so
libdect.so*