summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2014-12-03 23:33:54 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-12-11 01:41:58 +0100
commitd223059e682b10e0e766273a958f057a4482d9fe (patch)
treefba398dd876d84866835b4451d8a6a707bd716a6
parent505c3d03dc7ae8e06c68006e44fd80738a3d70a3 (diff)
downloaddpdk-d223059e682b10e0e766273a958f057a4482d9fe.zip
dpdk-d223059e682b10e0e766273a958f057a4482d9fe.tar.gz
dpdk-d223059e682b10e0e766273a958f057a4482d9fe.tar.xz
mk: fix build shared libraries
Only CPU_LDFLAGS is used in mk/rte.sharelib.mk. It should be LDFLAGS to build the library with correct linkage options. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Reviewed-by: Hayato Momma <h-momma@ce.jp.nec.com>
-rw-r--r--mk/rte.sharelib.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rte.sharelib.mk b/mk/rte.sharelib.mk
index c0a811a..df6c268 100644
--- a/mk/rte.sharelib.mk
+++ b/mk/rte.sharelib.mk
@@ -45,7 +45,7 @@ sharelib: $(LIB_ONE) FORCE
OBJS = $(wildcard $(RTE_OUTPUT)/build/lib/*.o)
-O_TO_S = $(LD) $(CPU_LDFLAGS) -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
+O_TO_S = $(LD) $(LDFLAGS) -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight
O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)")
O_TO_S_CMD = "cmd_$@ = $(O_TO_S_STR)"