From 9b56b18c421805ea03697987d169baf09d536f81 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 8 Oct 2018 08:22:36 -0400 Subject: Make it possible to overwrite options to ar using AR_OPTIONS No convention for naming of this variable afaict Mostly useful as an escape hatch when we for whatever reason do the wrong thing, as in #1702 when used with emconfigure --- src/build-data/makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in index 473f0efd7..50b34f35d 100644 --- a/src/build-data/makefile.in +++ b/src/build-data/makefile.in @@ -3,6 +3,7 @@ CXX = %{cxx} LINKER = %{linker} AR = %{ar_command} +AR_OPTIONS = %{ar_options} PYTHON_EXE = %{python_exe} # Compiler Flags @@ -92,7 +93,7 @@ fuzzer_corpus_zip: fuzzer_corpus %{if build_static_lib} %{out_dir}/%{static_lib_name}: $(LIBOBJS) - $(AR) %{ar_options} %{ar_output_to}$@ $(LIBOBJS) + $(AR) $(AR_OPTIONS) %{ar_output_to}$@ $(LIBOBJS) %{endif} -- cgit v1.2.3