mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-16 05:40:08 +00:00
Update.
* Makerules: If make variable md5 is defined to yes after generating dependencies generate MD5 sum for the object.
This commit is contained in:
parent
9dfa9a5a4f
commit
d2b9a50e60
@ -1,5 +1,8 @@
|
|||||||
2000-03-28 Ulrich Drepper <drepper@redhat.com>
|
2000-03-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* Makerules: If make variable md5 is defined to yes after
|
||||||
|
generating dependencies generate MD5 sum for the object.
|
||||||
|
|
||||||
* iconv/gconv_builtin.h: Fix length in transformation definition
|
* iconv/gconv_builtin.h: Fix length in transformation definition
|
||||||
for UNICODEBIG.
|
for UNICODEBIG.
|
||||||
|
|
||||||
|
11
Makerules
11
Makerules
@ -337,6 +337,15 @@ COMPILE.S = \
|
|||||||
$(CC) -c $(CPPFLAGS) -DASSEMBLER $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
|
$(CC) -c $(CPPFLAGS) -DASSEMBLER $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
|
||||||
COMPILE.s = $(filter-out -pipe,$(CC)) -c $(ASFLAGS)
|
COMPILE.s = $(filter-out -pipe,$(CC)) -c $(ASFLAGS)
|
||||||
|
|
||||||
|
# If we want to generate MD% checksums for the sources do this now.
|
||||||
|
ifeq ($(md5),yes)
|
||||||
|
generate-md5 = ; rm -f $(@:.d=.md5); \
|
||||||
|
$(CC) -E $< $(CFLAGS) $(CPPFLAGS) $($(<:$*.%=%)-CPPFLAGS) | \
|
||||||
|
sed '/^\#/d;/^[[:space:]]*$$/d' | md5sum > $(@:.d=.md5)
|
||||||
|
else
|
||||||
|
generate-md5 =
|
||||||
|
endif
|
||||||
|
|
||||||
# We need this for the output to go in the right place. It will default to
|
# We need this for the output to go in the right place. It will default to
|
||||||
# empty if make was configured to work with a cc that can't grok -c and -o
|
# empty if make was configured to work with a cc that can't grok -c and -o
|
||||||
# together. You can't compile the C library with such a compiler.
|
# together. You can't compile the C library with such a compiler.
|
||||||
@ -350,7 +359,7 @@ $(+mkdep) $< $(CFLAGS) $(CPPFLAGS) $($(<:$*.%=%)-CPPFLAGS) | \
|
|||||||
sed \
|
sed \
|
||||||
-e 's,$(subst .,\.,$*)\.o,$(foreach o,$(all-object-suffixes),$(@:.d=$o)) $@,' \
|
-e 's,$(subst .,\.,$*)\.o,$(foreach o,$(all-object-suffixes),$(@:.d=$o)) $@,' \
|
||||||
$(sed-remove-objpfx) > $(@:.d=.T)
|
$(sed-remove-objpfx) > $(@:.d=.T)
|
||||||
mv -f $(@:.d=.T) $@
|
mv -f $(@:.d=.T) $@ $(generate-md5)
|
||||||
endef
|
endef
|
||||||
ifneq (,$(objpfx))
|
ifneq (,$(objpfx))
|
||||||
# Continuation lines here are dangerous because they introduce spaces!
|
# Continuation lines here are dangerous because they introduce spaces!
|
||||||
|
Loading…
Reference in New Issue
Block a user