From 0673ede985a6560e7efb86dab1c58fb7f95ce587 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Mon, 25 Nov 2013 08:46:14 +0000 Subject: [PATCH] configure: add strip flags checks This will check if -wN '..@*' is available and fall back on -x if not; when none are available, do not run strip at all to prevent removing functions that might be actually needed. --- configure | 23 +++++++++++++++++++++++ library.mak | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6dcfd1b7fa..6135e8a779 100755 --- a/configure +++ b/configure @@ -659,6 +659,10 @@ add_ldflags(){ append LDFLAGS $($ldflags_filter "$@") } +add_stripflags(){ + append STRIPFLAGS "$@" +} + add_extralibs(){ prepend extralibs $($ldflags_filter "$@") } @@ -804,6 +808,20 @@ check_ldflags(){ test_ldflags "$@" && add_ldflags "$@" } +test_stripflags(){ + log test_stripflags "$@" + # call check_cc to get a fresh TMPO + check_cc < $(@:.o=.d) $(YASM) $(YASMFLAGS) -I $(