aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile.in
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-12 17:28:23 -0500
committerJack Lloyd <[email protected]>2017-12-12 17:28:23 -0500
commitfb01f3a6595598efd91a72710444475ec53d35e2 (patch)
treea7a43dad5afac350092f9f31c0eecc349372895b /src/build-data/makefile.in
parentdf6b9ac6940111ce4aac0a813a06d3dfcbf244a3 (diff)
Simplify how make flags are set
Diffstat (limited to 'src/build-data/makefile.in')
-rw-r--r--src/build-data/makefile.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in
index 3db5beed8..dda3c2004 100644
--- a/src/build-data/makefile.in
+++ b/src/build-data/makefile.in
@@ -19,8 +19,7 @@ EXE_LINK_CMD = %{exe_link_cmd}
LIB_LINKS_TO = %{link_to}
EXE_LINKS_TO = %{link_to_botan} $(LIB_LINKS_TO)
-LIB_FLAGS = $(SO_OBJ_FLAGS) $(LANG_FLAGS) $(CXXFLAGS) $(WARN_FLAGS)
-EXE_FLAGS = $(LANG_FLAGS) $(CXXFLAGS) $(WARN_FLAGS)
+BUILD_FLAGS = $(LANG_FLAGS) $(CXXFLAGS) $(WARN_FLAGS)
SCRIPTS_DIR = %{scripts_dir}
INSTALLED_LIB_DIR = %{prefix}/%{libdir}
@@ -116,22 +115,22 @@ fuzzer_corpus_zip: fuzzer_corpus
%{for lib_build_info}
%{obj}: %{src}
- $(CXX) %{isa_flags} $(%{target_type}_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
+ $(CXX) %{isa_flags} $(SO_OBJ_FLAGS) $(BUILD_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
%{endfor}
%{for cli_build_info}
%{obj}: %{src}
- $(CXX) %{isa_flags} $(%{target_type}_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
+ $(CXX) %{isa_flags} $(BUILD_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
%{endfor}
%{for test_build_info}
%{obj}: %{src}
- $(CXX) %{isa_flags} $(%{target_type}_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
+ $(CXX) %{isa_flags} $(BUILD_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
%{endfor}
%{for fuzzer_build_info}
%{obj}: %{src}
- $(CXX) %{isa_flags} $(%{target_type}_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
+ $(CXX) %{isa_flags} $(BUILD_FLAGS) %{include_paths} %{dash_c} %{src} %{dash_o}$@
%{exe}: %{obj} $(LIBRARIES)
$(EXE_LINK_CMD) %{obj} $(EXE_LINKS_TO) %{fuzzer_lib} %{output_to_exe}$@