Subject: [PATCH] Fix lost export-dynamic

From: Vitaliy Gusev <[email-masked]>
Date: Mon, 17 Dec 2007 16:06:38 +0300

get_link_kind() fails for statically linked modules (vlan, veth, etc.) if "ip" 
was linked without "export-dynamic".

Signed-off-by: Vitaliy Gusev <[email-masked]>

-- 
Thank,
Vitaliy Gusev
diff --git a/ip/Makefile b/ip/Makefile
index 448efb9..b427d58 100644
--- a/ip/Makefile
+++ b/ip/Makefile
@@ -24,3 +24,5 @@ clean:
 	rm -f $(ALLOBJ) $(TARGETS)
 
 LDLIBS += -ldl
+
+LDFLAGS += -Wl,-export-dynamic