Don't pass linker flags to compilation stages
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 4 Sep 2014 23:57:56 +0000 (16:57 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 11 Sep 2014 17:53:56 +0000 (10:53 -0700)
Change-Id: Ie6d45dee1dd1919fb32a05c30143c4ba6ad085d8
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
csdk/makefile

index 3850ae7..d5f9707 100644 (file)
@@ -124,7 +124,7 @@ objdirs: $(ROOT_DIR)
 obj_build:
        @echo "Building $@"
        # Output all *.o files to $(OBJ_DIR)/$(BUILD)
-       $(foreach source,$(SOURCES), $(CC) $(LDLIBS) $(CFLAGS) $(source) -o $(patsubst %.c, %.o, $(patsubst %, $(BUILD)/$(OBJ_DIR)/%, $(notdir $(source))));)
+       $(foreach source,$(SOURCES), $(CC) $(CFLAGS) $(source) -o $(patsubst %.c, %.o, $(patsubst %, $(BUILD)/$(OBJ_DIR)/%, $(notdir $(source))));)
 
 liboctbstack.a:
        @echo "Building $@"