From 773b1fbc231c611209ef0904d0152275e1b8bcfe Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sat, 12 Aug 2023 06:23:49 +0200 Subject: [PATCH] Quote CC for complex paths --- compile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile b/compile index 51c4950..0e71ff8 100755 --- a/compile +++ b/compile @@ -11,7 +11,7 @@ if [ "$target_os" = "linux" ]; then echo "* Compiling: linux ..." CC="${CC:=gcc}" ./lua_translate - $CC -std=gnu89 src/main.c -g -lSDL2 -llua5.3 -lm -o engine -O3 -Werror -Wall $CFLAGS + "$CC" -std=gnu89 src/main.c -g -lSDL2 -llua5.3 -lm -o engine -O3 -Werror -Wall $CFLAGS exit fi @@ -19,7 +19,7 @@ if [ "$target_os" = "openbsd" ]; then echo "* Compiling: openbsd ..." CC="${CC:=egcc}" ./lua_translate - $CC -std=gnu89 src/main.c -g -lSDL2 -llua5.3 -lm -o engine -O3 -Werror -Wall -I /usr/local/include $CFLAGS + "$CC" -std=gnu89 src/main.c -g -lSDL2 -llua5.3 -lm -o engine -O3 -Werror -Wall -I /usr/local/include $CFLAGS exit fi