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:
parent
9b7cb201bf
commit
5ca6fa98eb
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
LDFLAGS += -Lsrc -ldect
|
||||
LDFLAGS += -Wl,-rpath $(PWD)/src -Lsrc -ldect
|
||||
PROGRAMS += test mm discover
|
||||
|
||||
test-destdir := usr/bin
|
||||
|
|
|
@ -1 +1 @@
|
|||
libdect.so
|
||||
libdect.so*
|
||||
|
|
Reference in New Issue