shithub: openh264

Download patch

ref: 785ac16d280e4808a0f2143bf4c38c01723f1559
parent: 5d616714c4cdd30287e2c6a8aa485c2fc6c68b84
author: Martin Storsjö <martin@martin.st>
date: Tue Dec 17 07:29:21 EST 2013

Use $(AR) instead of explicitly calling 'ar'

This simplifies overriding the command used, e.g. for cross
compilation.

--- a/build/gtest-targets.mk
+++ b/build/gtest-targets.mk
@@ -13,7 +13,7 @@
 
 $(LIBPREFIX)gtest.$(LIBSUFFIX): $(GTEST_OBJS)
 	rm -f $(LIBPREFIX)gtest.$(LIBSUFFIX)
-	ar cr $@ $(GTEST_OBJS)
+	$(AR) cr $@ $(GTEST_OBJS)
 
 libraries: $(LIBPREFIX)gtest.$(LIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)gtest.$(LIBSUFFIX)
--- a/build/mktargets.py
+++ b/build/mktargets.py
@@ -92,7 +92,7 @@
 if args.library is not None:
     f.write("$(LIBPREFIX)%s.$(LIBSUFFIX): $(%s_OBJS)\n"%(args.library, PREFIX));
     f.write("\trm -f $(LIBPREFIX)%s.$(LIBSUFFIX)\n"%args.library)
-    f.write("\tar cr $@ $(%s_OBJS)\n"%PREFIX);
+    f.write("\t$(AR) cr $@ $(%s_OBJS)\n"%PREFIX);
     f.write("\n");
     f.write("libraries: $(LIBPREFIX)%s.$(LIBSUFFIX)\n"%args.library);
     f.write("LIBRARIES += $(LIBPREFIX)%s.$(LIBSUFFIX)\n"%args.library);
--- a/codec/common/targets.mk
+++ b/codec/common/targets.mk
@@ -16,7 +16,7 @@
 
 $(LIBPREFIX)common.$(LIBSUFFIX): $(COMMON_OBJS)
 	rm -f $(LIBPREFIX)common.$(LIBSUFFIX)
-	ar cr $@ $(COMMON_OBJS)
+	$(AR) cr $@ $(COMMON_OBJS)
 
 libraries: $(LIBPREFIX)common.$(LIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)common.$(LIBSUFFIX)
--- a/codec/decoder/targets.mk
+++ b/codec/decoder/targets.mk
@@ -148,7 +148,7 @@
 
 $(LIBPREFIX)decoder.$(LIBSUFFIX): $(DECODER_OBJS)
 	rm -f $(LIBPREFIX)decoder.$(LIBSUFFIX)
-	ar cr $@ $(DECODER_OBJS)
+	$(AR) cr $@ $(DECODER_OBJS)
 
 libraries: $(LIBPREFIX)decoder.$(LIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)decoder.$(LIBSUFFIX)
--- a/codec/encoder/targets.mk
+++ b/codec/encoder/targets.mk
@@ -208,7 +208,7 @@
 
 $(LIBPREFIX)encoder.$(LIBSUFFIX): $(ENCODER_OBJS)
 	rm -f $(LIBPREFIX)encoder.$(LIBSUFFIX)
-	ar cr $@ $(ENCODER_OBJS)
+	$(AR) cr $@ $(ENCODER_OBJS)
 
 libraries: $(LIBPREFIX)encoder.$(LIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)encoder.$(LIBSUFFIX)
--- a/processing/targets.mk
+++ b/processing/targets.mk
@@ -120,7 +120,7 @@
 
 $(LIBPREFIX)processing.$(LIBSUFFIX): $(PROCESSING_OBJS)
 	rm -f $(LIBPREFIX)processing.$(LIBSUFFIX)
-	ar cr $@ $(PROCESSING_OBJS)
+	$(AR) cr $@ $(PROCESSING_OBJS)
 
 libraries: $(LIBPREFIX)processing.$(LIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)processing.$(LIBSUFFIX)