From 1ed38eef33b7c38024215b2d4177beb4f68e989f Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sat, 3 Feb 2024 15:48:09 +0100 Subject: [PATCH] fixed MingW64 install on Windows (absop) (github issue #230) --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3d541eb..88747fc 100644 --- a/Makefile +++ b/Makefile @@ -106,7 +106,7 @@ else AR=$(CROSS_PREFIX)ar endif endif -STRIP=$(CROSS_PREFIX)strip +STRIP?=$(CROSS_PREFIX)strip CFLAGS+=-fwrapv # ensure that signed overflows behave as expected ifdef CONFIG_WERROR CFLAGS+=-Werror @@ -319,9 +319,9 @@ clean: install: all mkdir -p "$(DESTDIR)$(PREFIX)/bin" - $(STRIP) qjs qjsc - install -m755 qjs qjsc "$(DESTDIR)$(PREFIX)/bin" - ln -sf qjs "$(DESTDIR)$(PREFIX)/bin/qjscalc" + $(STRIP) qjs$(EXE) qjsc$(EXE) + install -m755 qjs$(EXE) qjsc$(EXE) "$(DESTDIR)$(PREFIX)/bin" + ln -sf qjs$(EXE) "$(DESTDIR)$(PREFIX)/bin/qjscalc$(EXE)" mkdir -p "$(DESTDIR)$(PREFIX)/lib/quickjs" install -m644 libquickjs.a "$(DESTDIR)$(PREFIX)/lib/quickjs" ifdef CONFIG_LTO