contrib: vpx: disable optimizations when boostrapped that way
authorSteve Lhomme <robux4@videolabs.io>
Fri, 20 May 2016 09:58:34 +0000 (11:58 +0200)
committerThomas Guillem <thomas@gllm.fr>
Fri, 20 May 2016 11:33:28 +0000 (13:33 +0200)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
contrib/src/vpx/rules.mak

index 28a4aa5..986f681 100644 (file)
@@ -112,6 +112,10 @@ VPX_CONF += --sdk-path=$(shell dirname $(shell which $(HOST)-gcc))
 VPX_CONF += --extra-cflags="-I $(ANDROID_NDK)/sources/cpufeatures/"
 endif
 
+ifndef WITH_OPTIMIZATION
+VPX_CONF += --enable-debug --disable-optimizations
+endif
+
 .vpx: libvpx
        cd $< && LDFLAGS="$(VPX_LDFLAGS)" CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
                $(VPX_CONF) --prefix=$(PREFIX)