comparison libgui/module.mk @ 23421:0bfdfd5870d7

Make Qt generated resource files reproducible * libgui/module.mk (rcc-command): Add QT_HASH_SEED=0 to the environment when running $(RCC) to ensure its output is reproducible.
author Mike Miller <mtmiller@octave.org>
date Fri, 21 Apr 2017 11:14:06 -0700
parents b8eeca55fa81
children 48fd5980e29a
comparison
equal deleted inserted replaced
23420:1fee389bd04b 23421:0bfdfd5870d7
92 echo "#endif"; \ 92 echo "#endif"; \
93 echo "// Ignore unused variable warnings in generated code."; \ 93 echo "// Ignore unused variable warnings in generated code."; \
94 echo "#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)"; \ 94 echo "#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)"; \
95 echo "#pragma GCC diagnostic ignored \"-Wunused-variable\""; \ 95 echo "#pragma GCC diagnostic ignored \"-Wunused-variable\""; \
96 echo "#endif"; \ 96 echo "#endif"; \
97 $(RCC) $(RCCFLAGS) -name $(@D) $< ) > $@-t && \ 97 QT_HASH_SEED=0 $(RCC) $(RCCFLAGS) -name $(@D) $< ) > $@-t && \
98 mv $@-t $@ 98 mv $@-t $@
99 endef 99 endef
100 100
101 moc-%.cc: %.h 101 moc-%.cc: %.h
102 $(AM_V_GEN)$(moc-command) 102 $(AM_V_GEN)$(moc-command)