ref: c8bed8a9bd90277b764c6103b611bd245192fed5
parent: 3a131800a82f13fd402bb23677a8f494d6b6a1e2
author: deadNightTiger <missterr@gmail.com>
date: Thu Jun 25 10:25:28 EDT 2015
Move -D flag for ar to platform-linux.mk
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
CCAS=$(CC)
CXX_O=-o $@
CXX_LINK_O=-o $@
-AR_OPTS=crD $@
+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