aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-08 08:22:36 -0400
committerJack Lloyd <[email protected]>2018-10-08 08:22:36 -0400
commit9b56b18c421805ea03697987d169baf09d536f81 (patch)
treeb7ce9989c12cb3c8abe56e1ea46da2c4525f9edb
parentb074cb4b554d2e932f4a5be48464f4b2716b3c2c (diff)
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
-rw-r--r--src/build-data/makefile.in3
1 files changed, 2 insertions, 1 deletions
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}