mem_util/makefile: Take LDFLAGS set in environment master
authorJacob Stiffler <j-stiffler@ti.com>
Wed, 16 Sep 2015 15:49:53 +0000 (11:49 -0400)
committerJacob Stiffler <j-stiffler@ti.com>
Wed, 16 Sep 2015 15:49:53 +0000 (11:49 -0400)
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
mem_util/makefile

index 9181d01aa3d2a4c620d6abfd9e757defb46494c1..13e002120ea797b347cd5fe66ab5b5700de012cc 100644 (file)
@@ -69,7 +69,7 @@ ALL_CFLAGS := $(INCLUDES)                   \
               -c                            \
               $(CFLAGS)
 
-LDFLAGS :=
+ALL_LDFLAGS := $(LDFLAGS)
 
 #   ----------------------------------------------------------------------------
 #   Compiler symbol definitions 
@@ -91,7 +91,7 @@ debug: $(BINDIR_D)/$(BIN)
 
 $(BINDIR_D)/$(BIN): $(OBJS_D)
        @echo Compiling Debug...
-       $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS)  -Wl,-Map,$(BINDIR_D)/$(NAME).map
+       $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(ALL_LDFLAGS)  -Wl,-Map,$(BINDIR_D)/$(NAME).map
 
 $(OBJDIR_D)/%.o : %.c $(HDRS)
        @mkdir -p $(OBJDIR_D)
@@ -105,7 +105,7 @@ release: $(BINDIR_R)/$(BIN)
 
 $(BINDIR_R)/$(BIN): $(OBJS_R)
        @echo Compiling Release...
-       $(CC) -o $@ $(OBJS_R) $(LIBS_R) $(LDFLAGS) -Wl,-Map,$(BINDIR_R)/$(NAME).map
+       $(CC) -o $@ $(OBJS_R) $(LIBS_R) $(ALL_LDFLAGS) -Wl,-Map,$(BINDIR_R)/$(NAME).map
 
 
 $(OBJDIR_R)/%.o : %.c $(HDRS)