]> granicus.if.org Git - libvpx/commitdiff
Fix building of static libs on universal-darwin
authorJohn Koleszar <jkoleszar@google.com>
Wed, 3 Aug 2011 13:20:37 +0000 (09:20 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 3 Aug 2011 14:38:45 +0000 (10:38 -0400)
The static libs should not be built from sources during the top level
of a universal build. This regression was introduced in commit
495b241fa6b03345baf2b2f39aa8c06c735fccc2, which made the static
libs selectable under CONFIG_STATIC.

Change-Id: I585167e17459877e0fa7fa19e1046c3703d91c97

libs.mk

diff --git a/libs.mk b/libs.mk
index fed1847fbd01e9e76b7a75b4af0fccd63fd45d08..757e068d2a9629d34d2d50e238b36fce0b0d3715 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -180,7 +180,7 @@ endif
 else
 LIBVPX_OBJS=$(call objs,$(CODEC_SRCS))
 OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS)
-LIBS-$(CONFIG_STATIC) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a
+LIBS-$(if $(BUILD_LIBVPX),$(CONFIG_STATIC)) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a
 $(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS)
 
 BUILD_LIBVPX_SO         := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED))