From: Hiroshi Shimamoto Date: Wed, 3 Dec 2014 23:33:54 +0000 (+0000) Subject: mk: fix build shared libraries X-Git-Tag: spdx-start~9966 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d223059e682b10e0e766273a958f057a4482d9fe;p=dpdk.git 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 Reviewed-by: Hayato Momma --- diff --git a/mk/rte.sharelib.mk b/mk/rte.sharelib.mk index c0a811a65e..df6c268dc9 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)"