0001-Fix-configure-issue-that-discarded-provided-CC-defin.patch 597 B

12345678910111213141516171819202122232425
  1. From 05796d3d8d5546cf1b4dfe2cd72ab746afae505d Mon Sep 17 00:00:00 2001
  2. From: Mark Adler <madler@alumni.caltech.edu>
  3. Date: Mon, 28 Mar 2022 18:34:10 -0700
  4. Subject: [PATCH] Fix configure issue that discarded provided CC definition.
  5. ---
  6. configure | 3 +++
  7. 1 file changed, 3 insertions(+)
  8. diff --git a/configure b/configure
  9. index 52ff4a0..3fa3e86 100755
  10. --- a/configure
  11. +++ b/configure
  12. @@ -174,7 +174,10 @@ if test -z "$CC"; then
  13. else
  14. cc=${CROSS_PREFIX}cc
  15. fi
  16. +else
  17. + cc=${CC}
  18. fi
  19. +
  20. cflags=${CFLAGS-"-O3"}
  21. # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
  22. case "$cc" in