bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/7] Makeconf: remove redundant $($*-FOOFLAGS)


From: Jeremie Koenig
Subject: [PATCH 4/7] Makeconf: remove redundant $($*-FOOFLAGS)
Date: Mon, 16 Aug 2010 13:51:24 +0200

The target-specific $($*-CFLAGS) and $($*-CPPFLAGS) are already embedded
into $(CFLAGS) and $(CPPFLAGS), so it's not necessary to add them at the
usage site.

Signed-off-by: Jeremie Koenig <address@hidden>
---
 Makeconf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makeconf b/Makeconf
index fd47ee0..6f7af87 100644
--- a/Makeconf
+++ b/Makeconf
@@ -310,7 +310,7 @@ rpath := -Wl,-rpath-link=.:$(subst $. ,:,$(dir $(wildcard 
../lib*/lib*.so)))
 ifeq ($(prof-depend),)
 
 define link-executable
-$(CC) $(rpath) $(CFLAGS) $($*-CFLAGS) $(LDFLAGS) $($*-LDFLAGS) \
+$(CC) $(rpath) $(CFLAGS) $(LDFLAGS) $($*-LDFLAGS) \
       $(BUGADDR_REF) \
       -o $@
 endef
@@ -330,7 +330,7 @@ endif
 
 # Just like above, but tell how to make .prof versions of programs.
 $(addsuffix .prof,$(progtarg)): %$(target-suffix).prof: $(BUGADDR)
-       $(CC) -pg $(CFLAGS) $($*-CFLAGS) $(LDFLAGS) $($*-LDFLAGS) \
+       $(CC) -pg $(CFLAGS) $(LDFLAGS) $($*-LDFLAGS) \
                $(BUGADDR_REF) -static \
                -o $@ \
                '-Wl,-(' $^ $($*-LDLIBS) $(LDLIBS) \
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]