($(objpfx)version-info.h): Use CPPFLAGS to find correct linux/version.h.
authordrepper <drepper>
Thu, 26 Jun 2003 07:27:39 +0000 (07:27 +0000)
committerdrepper <drepper>
Thu, 26 Jun 2003 07:27:39 +0000 (07:27 +0000)
csu/Makefile

index 95da703..1a3c9c1 100644 (file)
@@ -217,7 +217,7 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
        $(make-target-directory)
        (case $(config-os) in \
           linux*) version=`(echo -e "#include <linux/version.h>\nUTS_RELEASE"\
-                            | $(CC) -E -P - | \
+                            | $(CC) $(CPPFLAGS) -E -P - | \
                             sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
                   if [ -z "$$version" ]; then \
                     if [ -r /proc/version ]; then \