aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Mario Emmenlauer <mario@emmenlauer.de>2016-12-12 23:12:47 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-01-11 08:41:00 +0100
commit1643c045a03536bff3bcafed6c1b599cc47d508a (patch)
tree11c6911c6c9ec4fadb44278f79ee5f6c0a491939 /Makefile
parent121d289e28d0a791cbc144cd9c3696e706684f9b (diff)
Makefile.template and Makefile: avoid stripping too heavily on MSYS2 / MINGW32 platform
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 433c115e84..4f0d0017f3 100644
--- a/Makefile
+++ b/Makefile
@@ -292,12 +292,19 @@ AR = libtool -no_warning_for_no_symbols -o
endif
STRIP ?= strip -x
else
+ifeq ($(SYSTEM),MINGW32)
+ifeq ($(origin AR), default)
+AR = ar rcs
+endif
+STRIP ?= strip --strip-unneeded
+else
ifeq ($(origin AR), default)
AR = ar rcs
endif
STRIP ?= strip
endif
endif
+endif
INSTALL ?= install
RM ?= rm -f
PKG_CONFIG ?= pkg-config