($(objpfx)version-info.h): Get OS name from uname and only fall back
authordrepper <drepper>
Sun, 16 Apr 2000 00:56:55 +0000 (00:56 +0000)
committerdrepper <drepper>
Sun, 16 Apr 2000 00:56:55 +0000 (00:56 +0000)
on using Linux.

csu/Makefile

index 79eeef1..1fb2e8f 100644 (file)
@@ -182,7 +182,11 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
                       version=`uname -r`; \
                     fi; \
                   fi; \
-                  echo "\"Compiled on a Linux $$version system" \
+                  os=`uname -s 2> /dev/null`; \
+                  if [ -z "$$os" ]; then \
+                    os=Linux; \
+                  fi; \
+                  echo "\"Compiled on a $$os $$version system" \
                        "on `date +%Y-%m-%d`.\\n\"" ;; \
           *) ;; \
         esac; \