Sun, 03 Sep 2023 12:43:44 +0200
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