summaryrefslogtreecommitdiff
path: root/usbredirserver
diff options
context:
space:
mode:
Diffstat (limited to 'usbredirserver')
-rw-r--r--usbredirserver/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usbredirserver/Makefile b/usbredirserver/Makefile
index 26639d4..889b839 100644
--- a/usbredirserver/Makefile
+++ b/usbredirserver/Makefile
@@ -9,7 +9,9 @@ all: $(TARGETS)
-include *.d
usbredirserver: $(USBREDIRSERVER_OBJS)
- $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -lusbredirhost
+# rpath-link so that usbredirparser (needed by usbredirhost) can be found
+# when building without having a previous version installed
+ $(CC) $(LDFLAGS) -Wl,-rpath-link,../usbredirparser -o $@ $^ $(LIBS) -lusbredirhost
install: all
mkdir -p $(DESTDIR)$(SBINDIR)