[vlc-devel] [PATCH v2 4/6] contrib: lua: fix CC replacement

Alexandre Janniaux ajanni at videolabs.io
Sat Nov 14 16:30:02 CET 2020


The sed command was replacing CC= with CC= and thus doing nothing.
---
 contrib/src/lua/rules.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index d4c8e1c4d0..491353b484 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -68,8 +68,8 @@ endif
 	# Setup the variable used by the contrib system into the lua Makefile
 	# and change lua library artifact to include the version, so that it
 	# does not conflict with a system one
-	cd $(UNPACK_DIR)/src && sed -i.orig \
-		-e 's%CC=%#CC=%' \
+	cd $(UNPACK_DIR)/ && sed -i.orig \
+		-e 's%CC=.*%#CC=$(CC)%' \
 		-e 's%= *strip%=$(STRIP)%' \
 		-e 's%= *ranlib%= $(RANLIB)%' \
 		-e 's%AR= *ar%AR= $(AR)%' \
-- 
2.29.2



More information about the vlc-devel mailing list