(CPPFLAGS): Also add CPPFLAGS-<basename> where <basename> is the name of the source...
authorUlrich Drepper <drepper@redhat.com>
Mon, 8 Apr 2002 08:32:49 +0000 (08:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 8 Apr 2002 08:32:49 +0000 (08:32 +0000)
Makeconfig

index d7c7172..33e3b73 100644 (file)
@@ -634,7 +634,8 @@ libio-include = -I$(..)libio
 # These are the variables that the implicit compilation rules use.
 CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
           -include $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
-          $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F))
+          $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) \
+          $(CPPFLAGS-$(patsubst %$(suffix $@),%,$(@F)))
 override CFLAGS        = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
                  $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))