mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 03:10:09 +00:00
Remove "Compiled on ..." crapola from version text.
This commit is contained in:
parent
d6fe5e582d
commit
5006148ee5
@ -1,3 +1,8 @@
|
|||||||
|
2014-03-14 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
|
||||||
|
"Compiled on ..." crapola. It is anti-useful.
|
||||||
|
|
||||||
2014-03-14 Joseph Myers <joseph@codesourcery.com>
|
2014-03-14 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* scripts/evaluate-test.sh: Handle fourth argument to determine
|
* scripts/evaluate-test.sh: Handle fourth argument to determine
|
||||||
|
35
csu/Makefile
35
csu/Makefile
@ -131,40 +131,7 @@ all-Banner-files = $(wildcard $(addsuffix /Banner,\
|
|||||||
$(sysdeps-srcdirs))))
|
$(sysdeps-srcdirs))))
|
||||||
$(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
|
$(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
|
||||||
$(make-target-directory)
|
$(make-target-directory)
|
||||||
(case $(config-os) in \
|
(files="$(all-Banner-files)"; \
|
||||||
linux*) version=`(printf '%s\n%s\n' \
|
|
||||||
'#include <linux/version.h>' \
|
|
||||||
UTS_RELEASE \
|
|
||||||
| $(CC) $(CPPFLAGS) -O -E -P - -DNOT_IN_libc=1 | \
|
|
||||||
sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
|
|
||||||
if [ -z "$$version" ]; then \
|
|
||||||
version=`(printf '%s\n%s\n' \
|
|
||||||
'#include <linux/version.h>' \
|
|
||||||
LINUX_VERSION_CODE \
|
|
||||||
| $(CC) $(CPPFLAGS) -O -E -P - -DNOT_IN_libc=1 \
|
|
||||||
| sed -n -e '/^[123456789].*/p' \
|
|
||||||
| awk '{v=$$1; \
|
|
||||||
printf("%d.%d.%d\n", \
|
|
||||||
v/65535, v/256%256, v%256)}') \
|
|
||||||
2>/dev/null`; \
|
|
||||||
fi; \
|
|
||||||
if [ -z "$$version" ]; then \
|
|
||||||
if [ -r /proc/version ]; then \
|
|
||||||
version=`sed 's/.*Linux version \([^ ]*\) .*/>>\1<</' \
|
|
||||||
< /proc/version`; \
|
|
||||||
else \
|
|
||||||
version=`uname -r`; \
|
|
||||||
fi; \
|
|
||||||
fi; \
|
|
||||||
os=`uname -s 2> /dev/null`; \
|
|
||||||
if [ -z "$$os" ]; then \
|
|
||||||
os=Linux; \
|
|
||||||
fi; \
|
|
||||||
printf '"Compiled on a %s %s system on %s.\\n"\n' \
|
|
||||||
"$$os" "$$version" "`date +%Y-%m-%d`";; \
|
|
||||||
*) ;; \
|
|
||||||
esac; \
|
|
||||||
files="$(all-Banner-files)"; \
|
|
||||||
if test -n "$$files"; then \
|
if test -n "$$files"; then \
|
||||||
printf '"Available extensions:\\n"\n'; \
|
printf '"Available extensions:\\n"\n'; \
|
||||||
sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
|
sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
|
||||||
|
Loading…
Reference in New Issue
Block a user