bzip2/bzip2-1.0.8-toolchain-variable.patch
Funda Wang bac409748a cleanup spec
(cherry picked from commit c4b4a4b55c15ee9d6f66572303c228334066a35c)
(cherry picked from commit 7c265be9472dc6d9a857812a66c2f48cef095835)
2025-02-12 10:55:22 +08:00

27 lines
601 B
Diff

--- bzip2-1.0.8/Makefile.orig 2024-08-11 20:50:17.297655600 +0800
+++ bzip2-1.0.8/Makefile 2024-08-11 20:51:08.955480100 +0800
@@ -15,9 +15,9 @@
SHELL=/bin/sh
# To assist in cross-compiling
-CC=gcc
-AR=ar
-RANLIB=ranlib
+CC ?=gcc
+AR ?= ar
+RANLIB ?= ranlib
# Where you want it installed when you do 'make install'
PREFIX=/usr/local
--- bzip2-1.0.8/Makefile-libbz2_so.orig 2024-08-11 20:56:12.124391600 +0800
+++ bzip2-1.0.8/Makefile-libbz2_so 2024-08-11 20:57:53.109240100 +0800
@@ -22,7 +22,7 @@
SHELL=/bin/sh
-CC=gcc
+CC ?= gcc
BIGFILES=-D_FILE_OFFSET_BITS=64
OBJS= blocksort.o \