contribs: lua: Allow an absolute path to be passed as CC/STRIP/RANLIB
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 20 Apr 2017 14:26:31 +0000 (16:26 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 21 Apr 2017 13:14:45 +0000 (15:14 +0200)
contrib/src/lua/rules.mak

index 7353451..b1a27c4 100644 (file)
@@ -64,9 +64,9 @@ ifdef HAVE_WIN32
        cd $(UNPACK_DIR) && sed -i.orig -e 's/lua luac/lua.exe luac.exe/' Makefile
 endif
        cd $(UNPACK_DIR)/src && sed -i.orig \
-               -e 's/CC=/#CC=/' \
-               -e 's/= *strip/=$(STRIP)/' \
-               -e 's/= *ranlib/= $(RANLIB)/' \
+               -e 's%CC=%#CC=%' \
+               -e 's%= *strip%=$(STRIP)%' \
+               -e 's%= *ranlib%= $(RANLIB)%' \
                Makefile
        $(MOVE)