fix missing initialization of CFLAGS and LDFLAGS when toolchain is unknown - fixes #288

Sun, 03 Sep 2023 12:43:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 03 Sep 2023 12:43:44 +0200
changeset 38
02b000e40e5e
parent 37
ef09f80e911e
child 39
3ca85da78515

fix missing initialization of CFLAGS and LDFLAGS when toolchain is unknown - fixes #288

test/make/toolchain.sh file | annotate | diff | comparison | revisions
--- a/test/make/toolchain.sh	Sun Sep 03 12:38:49 2023 +0200
+++ b/test/make/toolchain.sh	Sun Sep 03 12:43:44 2023 +0200
@@ -194,7 +194,12 @@
 	if [ -f "make/${TOOLCHAIN_NAME}.mk" ]; then
 		cat "make/${TOOLCHAIN_NAME}.mk" >> "$TEMP_DIR/config.mk"
 	else
-		echo "SHLIB_CFLAGS = -fPIC" >> "$TEMP_DIR/config.mk"
-		echo "SHLIB_LDFLAGS = -shared" >> "$TEMP_DIR/config.mk"
+		cat >> "$TEMP_DIR/config.mk" << __EOF__
+CFLAGS =
+LDFLAGS =
+
+SHLIB_CFLAGS = -fPIC
+SHLIB_LDFLAGS = -shared
+__EOF__
 	fi
 fi

mercurial