]> git.kaiwu.me - quickjs.git/commitdiff
fixed MingW64 install on Windows (absop) (github issue #230)
authorFabrice Bellard <fabrice@bellard.org>
Sat, 3 Feb 2024 14:48:09 +0000 (15:48 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Sat, 3 Feb 2024 14:48:09 +0000 (15:48 +0100)
Makefile

index 3d541eb8cf5c809966ae6a3eefed85556b03b1b0..88747fc6ce7d91a2b375f2970b4f724b9136252e 100644 (file)
--- 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