summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorDamien Millescamps <damien.millescamps@6wind.com>2013-06-12 09:51:27 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 18:08:43 +0100
commitd4fe62e75992a6a2ef3692cef8794734ba1a78a9 (patch)
treec99fbf2e18b7138e345e014f2c44a326c1829caf /mk
parentda776f85eeabced81c5595824c18089d145d2959 (diff)
downloaddpdk-d4fe62e75992a6a2ef3692cef8794734ba1a78a9.zip
dpdk-d4fe62e75992a6a2ef3692cef8794734ba1a78a9.tar.gz
dpdk-d4fe62e75992a6a2ef3692cef8794734ba1a78a9.tar.xz
eal: add support for shared object drivers
Add an option to specify libraries to be loaded before probing the PCI. For instance, testpmd -d librte_pmd_xxx.so can be used to enable xxx driver support on testpmd without any recompilation of testpmd. Plugins are loaded before creating threads because we want the threads to inherit any property that could be set while loading a plugin, such as iopl(). Signed-off-by: Damien Millescamps <damien.millescamps@6wind.com> Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/exec-env/linuxapp/rte.vars.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/exec-env/linuxapp/rte.vars.mk b/mk/exec-env/linuxapp/rte.vars.mk
index eb7474f..9ff93cb 100644
--- a/mk/exec-env/linuxapp/rte.vars.mk
+++ b/mk/exec-env/linuxapp/rte.vars.mk
@@ -56,4 +56,9 @@ endif
# force applications to link with gcc/icc instead of using ld
LINK_USING_CC := 1
-export EXECENV_CFLAGS EXECENV_LDFLAGS EXECENV_ASFLAGS
+# For shared libraries
+EXECENV_LDFLAGS += -export-dynamic
+# Add library to the group to resolve symbols
+EXECENV_LDLIBS += -ldl
+
+export EXECENV_CFLAGS EXECENV_LDFLAGS EXECENV_ASFLAGS EXECENV_LDLIBS