summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ca709b7..760a07e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CORE_OBJS = control.o reader.o config.o command.o
PLUGINS = reader_yhy.so
reader_yhy.so: LDLIBS = -lyhy
-reader_yhy.so: LDFLAGS = -L. -Wl,-rpath .
+reader_yhy.so: LDFLAGS += -L. -Wl,-rpath .
%.so: CFLAGS += -shared -fPIC
@@ -13,6 +13,7 @@ reader_yhy.so: LDFLAGS = -L. -Wl,-rpath .
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS)
nfcommander: LDLIBS = -ldl
+nfcommander: LDFLAGS += -Wl,-export-dynamic
all: nfcommander $(PLUGINS)