]> Git Repo - secp256k1.git/commitdiff
Merge #561: Respect LDFLAGS and #undef STATIC_PRECOMPUTATION if using basic config
authorGregory Maxwell <[email protected]>
Thu, 23 May 2019 00:36:27 +0000 (00:36 +0000)
committerGregory Maxwell <[email protected]>
Thu, 23 May 2019 00:38:30 +0000 (00:38 +0000)
dbed75d Undefine `STATIC_PRECOMPUTATION` if using the basic config (DesWurstes)
310111e Keep LDFLAGS if `--coverage` (DesWurstes)

Pull request description:

  Update: **This is a trimmed pull request with strong rationale.**

  - Adding `--coverage` shouldn't reset `LDFLAGS`, this is definitely a typo
  - The basic configuration should undefine `STATIC_PRECOMPUTATION`, as generating it is not supported and it complicates #549

Tree-SHA512: 29f0dd4c870ec60d535346446b453da459ca843ed1265c2bc966bf0fcbdf3c5c79f9e48a419662e81d790a7003f8877a16e2a5a74aa5c0b79645e15ad56a0f66

configure.ac
src/basic-config.h

index 3b7a328c8af0acd9162152dccdb3ceb37f86358e..55e86a768a83bfb0dba4648e7a6b0343faa76aa3 100644 (file)
@@ -156,7 +156,7 @@ AC_CHECK_TYPES([__int128])
 if test x"$enable_coverage" = x"yes"; then
     AC_DEFINE(COVERAGE, 1, [Define this symbol to compile out all VERIFY code])
     CFLAGS="$CFLAGS -O0 --coverage"
-    LDFLAGS="--coverage"
+    LDFLAGS="$LDFLAGS --coverage"
 else
     CFLAGS="$CFLAGS -O3"
 fi
index fc588061ca40cdcc30151f5b7e17bc83b4a7125e..8a4ade6318dd4ce15fc4231582746aa915a70248 100644 (file)
@@ -10,6 +10,7 @@
 #ifdef USE_BASIC_CONFIG
 
 #undef USE_ASM_X86_64
+#undef USE_ECMULT_STATIC_PRECOMPUTATION
 #undef USE_ENDOMORPHISM
 #undef USE_FIELD_10X26
 #undef USE_FIELD_5X52
This page took 0.027765 seconds and 4 git commands to generate.