aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Howard <yzena.tech@gmail.com>2021-04-04 19:48:04 -0600
committerGavin Howard <yzena.tech@gmail.com>2021-04-04 19:48:04 -0600
commitaff26e3c3feca6986eb14a044b10368910a2a11e (patch)
treefd492003dcee34e994a320609fc4bf262ade559e
parentf7a6430c6abbfbc713eec85a54a1f19aab64dab9 (diff)
downloadbc-aff26e3c3feca6986eb14a044b10368910a2a11e.tar.gz
Add the BUILD_TYPE to the build
-rw-r--r--Makefile.in4
-rwxr-xr-xconfigure.sh2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f453e93d..5db12c7f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,6 +126,8 @@ MAIN_EXEC = $(EXEC_PREFIX)$(%%MAIN_EXEC%%)$(EXEC_SUFFIX)
EXEC = $(%%EXEC%%)
NLSPATH = %%NLSPATH%%
+BC_BUILD_TYPE = %%BUILD_TYPE%%
+
BC_ENABLE_LIBRARY = %%LIBRARY%%
BC_ENABLE_HISTORY = %%HISTORY%%
@@ -156,7 +158,7 @@ TEST_STARS = "******************************************************************
BC_NUM_KARATSUBA_LEN = %%KARATSUBA_LEN%%
CPPFLAGS1 = -D$(BC_ENABLED_NAME)=$(BC_ENABLED) -D$(DC_ENABLED_NAME)=$(DC_ENABLED)
-CPPFLAGS2 = $(CPPFLAGS1) -I./include/ %%LONG_BIT_DEFINE%%
+CPPFLAGS2 = $(CPPFLAGS1) -I./include/ -DBUILD_TYPE=$(BC_BUILD_TYPE) %%LONG_BIT_DEFINE%%
CPPFLAGS3 = $(CPPFLAGS2) -DEXECPREFIX=$(EXEC_PREFIX) -DMAINEXEC=$(MAIN_EXEC)
CPPFLAGS4 = $(CPPFLAGS3) -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
CPPFLAGS5 = $(CPPFLAGS4) -DBC_NUM_KARATSUBA_LEN=$(BC_NUM_KARATSUBA_LEN)
diff --git a/configure.sh b/configure.sh
index 310c2688..af96564e 100755
--- a/configure.sh
+++ b/configure.sh
@@ -1221,6 +1221,8 @@ contents=$(replace "$contents" "DC_TESTS" "$dc_tests")
contents=$(replace "$contents" "DC_SCRIPT_TESTS" "$dc_script_tests")
contents=$(replace "$contents" "DC_TEST_EXEC" "$dc_test_exec")
+contents=$(replace "$contents" "BUILD_TYPE" "$manpage_args")
+
contents=$(replace "$contents" "LIBRARY" "$library")
contents=$(replace "$contents" "HISTORY" "$hist")
contents=$(replace "$contents" "EXTRA_MATH" "$extra_math")