shithub: openh264

Download patch

ref: a4fb978bb74817e49e5f42166fef4e1fc61ef141
parent: 9be80c088dec4d068e671b58e8b0da232f75d60e
parent: c8bed8a9bd90277b764c6103b611bd245192fed5
author: sijchen <sijchen@cisco.com>
date: Fri Jun 26 11:06:41 EDT 2015

Merge pull request #1997 from deadNightTiger/deterministic-build

Enable deterministic mode for ar

--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 CCAS=$(CC)
 CXX_O=-o $@
 CXX_LINK_O=-o $@
-AR_OPTS=cr $@
+AR_OPTS=cr
 LINK_LOCAL_DIR=-L.
 LINK_LIB=-l$(1)
 CFLAGS_OPT=-O3
@@ -70,6 +70,7 @@
 
 CFLAGS += -DGENERATED_VERSION_HEADER
 LDFLAGS +=
+AR_OPTS += $@
 
 ifeq (Yes, $(GCOV))
 CFLAGS += -fprofile-arcs -ftest-coverage
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -4,6 +4,7 @@
 SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
 CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
 LDFLAGS += -lpthread
+AR_OPTS += -D
 ifeq ($(ASM_ARCH), x86)
 ifeq ($(ARCH), x86_64)
 ASMFLAGS += -f elf64