bzip2/bzip2-1.0.8-toolchain-variable.patch

27 lines
601 B
Diff
Raw Permalink Normal View History

--- 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 \