summaryrefslogtreecommitdiff
path: root/mk/exec-env
diff options
context:
space:
mode:
authorDamien Millescamps <damien.millescamps@6wind.com>2013-06-12 09:51:27 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-11-24 21:31:37 +0100
commitcf74126322c517a6b8ee4a30b9b766ee656cb925 (patch)
tree2b96bf0cdb22a8371d060aab9da6709c7e4eedbc /mk/exec-env
parent5590f78c7ade4da4444a15f7d5ac37471bd5ed08 (diff)
downloaddpdk-cf74126322c517a6b8ee4a30b9b766ee656cb925.zip
dpdk-cf74126322c517a6b8ee4a30b9b766ee656cb925.tar.gz
dpdk-cf74126322c517a6b8ee4a30b9b766ee656cb925.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/exec-env')
-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