From 1643c045a03536bff3bcafed6c1b599cc47d508a Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer <mario@emmenlauer.de> Date: Mon, 12 Dec 2016 23:12:47 +0100 Subject: [PATCH] Makefile.template and Makefile: avoid stripping too heavily on MSYS2 / MINGW32 platform --- Makefile | 7 +++++++ templates/Makefile.template | 7 +++++++ 2 files changed, 14 insertions(+) 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 diff --git a/templates/Makefile.template b/templates/Makefile.template index 6364662d9a..3844918de2 100644 --- a/templates/Makefile.template +++ b/templates/Makefile.template @@ -182,12 +182,19 @@ 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 -- GitLab