[yocto] [PATCH] Makefile: remove static linking in Linux build

Jianxun Zhang jianxun.zhang at linux.intel.com
Fri Aug 26 15:45:02 PDT 2016


The removed static linking was for a desire to make rmc run
on systems where c libraries are not provided.

But it is nothing wrong to dynamically link rmc with libraries.
We also don't have to hardcode the way of linking in Makefile
since people can specify it in RMC_CFLAGS passed to make command.

Signed-off-by: Jianxun Zhang <jianxun.zhang at linux.intel.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e873af6..f152829 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ RMC_INSTALL_BIN_PATH := $(RMC_INSTALL_PREFIX)/bin/
 
 ALL_OBJS := $(RMC_TOOL_OBJ) $(RMCL_OBJ) $(RSMP_OBJ)
 
-CFLAGS := -static -Wall -O2 -Iinc $(RMC_CFLAGS)
+CFLAGS := -Wall -O2 -Iinc $(RMC_CFLAGS)
 
 all: rmc librmcl librsmp
 
-- 
2.7.4




More information about the yocto mailing list