summaryrefslogtreecommitdiff
path: root/mk/exec-env
diff options
context:
space:
mode:
authorIntel <intel.com>2013-09-18 12:00:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-10-09 15:35:36 +0200
commite25e4d7ef16b8aa84de7b0c93c48260b68c86fbe (patch)
treefb007d8ad1239c69acf02e67792cce917d902fe2 /mk/exec-env
parent6da94b7a92d9706c1a4fb23a9cf54f49e6019af2 (diff)
downloaddpdk-e25e4d7ef16b8aa84de7b0c93c48260b68c86fbe.zip
dpdk-e25e4d7ef16b8aa84de7b0c93c48260b68c86fbe.tar.gz
dpdk-e25e4d7ef16b8aa84de7b0c93c48260b68c86fbe.tar.xz
mk: shared libraries
Allow to build shared libraries (.so) instead of static ones (.a). Signed-off-by: Intel
Diffstat (limited to 'mk/exec-env')
-rw-r--r--mk/exec-env/linuxapp/rte.vars.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/exec-env/linuxapp/rte.vars.mk b/mk/exec-env/linuxapp/rte.vars.mk
index 2a1611d..eb7474f 100644
--- a/mk/exec-env/linuxapp/rte.vars.mk
+++ b/mk/exec-env/linuxapp/rte.vars.mk
@@ -39,12 +39,20 @@
#
# examples for RTE_EXEC_ENV: linuxapp, baremetal
#
-
+ifeq ($(RTE_BUILD_SHARED_LIB),y)
+EXECENV_CFLAGS = -pthread -fPIC
+else
EXECENV_CFLAGS = -pthread
+endif
+
EXECENV_LDFLAGS =
EXECENV_LDLIBS = -lrt -lm
EXECENV_ASFLAGS =
+ifeq ($(RTE_BUILD_SHARED_LIB),y)
+EXECENV_LDLIBS += -lgcc_s
+endif
+
# force applications to link with gcc/icc instead of using ld
LINK_USING_CC := 1