]> granicus.if.org Git - libvpx/commitdiff
libs.mk: set LC_ALL=C w/egrep invocations
authorJames Zern <jzern@google.com>
Thu, 29 Oct 2020 22:46:21 +0000 (15:46 -0700)
committerJames Zern <jzern@google.com>
Thu, 29 Oct 2020 22:46:21 +0000 (15:46 -0700)
this guarantees consistent interpretation of the character ranges

BUG=webm:1711

Change-Id: Ia9123f079cc7ac248b9eff4d817e2e103d627b2b

libs.mk

diff --git a/libs.mk b/libs.mk
index d14439a3da31127c06a9a8504792357991ad634b..b5bc35755cf16df76502e04fe082985c180dceaa 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -420,13 +420,13 @@ ifeq ($(VPX_ARCH_X86)$(VPX_ARCH_X86_64),yes)
 # YASM
 $(BUILD_PFX)vpx_config.asm: $(BUILD_PFX)vpx_config.h
        @echo "    [CREATE] $@"
-       @egrep "#define [A-Z0-9_]+ [01]" $< \
+       @LC_ALL=C egrep "#define [A-Z0-9_]+ [01]" $< \
            | awk '{print $$2 " equ " $$3}' > $@
 else
 ADS2GAS=$(if $(filter yes,$(CONFIG_GCC)),| $(ASM_CONVERSION))
 $(BUILD_PFX)vpx_config.asm: $(BUILD_PFX)vpx_config.h
        @echo "    [CREATE] $@"
-       @egrep "#define [A-Z0-9_]+ [01]" $< \
+       @LC_ALL=C egrep "#define [A-Z0-9_]+ [01]" $< \
            | awk '{print $$2 " EQU " $$3}' $(ADS2GAS) > $@
        @echo "        END" $(ADS2GAS) >> $@
 CLEAN-OBJS += $(BUILD_PFX)vpx_config.asm