Merge pull request #285875 from seanybaggins/add-mingw32-support-lzip

lzip: add mingw support
This commit is contained in:
Artturi 2024-02-05 19:40:53 +02:00 committed by GitHub
commit a04e60d617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-R5LAR93xXvKdVbqOaKGiHgy3aS2H7N9yBEGYZFgvKA0=";
};
patches = lib.optionals stdenv.hostPlatform.isMinGW [
./mingw-install-exe-file.patch
];
configureFlags = [
"CPPFLAGS=-DNDEBUG"
"CFLAGS=-O3"

View File

@ -0,0 +1,13 @@
diff --git a/Makefile.in b/Makefile.in
index d07ad5a..1c15203 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -64,7 +64,7 @@ install-strip-compress : install-bin-strip install-info-compress install-man-com
install-bin : all
if [ ! -d "$(DESTDIR)$(bindir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ; fi
- $(INSTALL_PROGRAM) ./$(progname) "$(DESTDIR)$(bindir)/$(progname)"
+ $(INSTALL_PROGRAM) ./$(progname).exe "$(DESTDIR)$(bindir)/$(progname).exe"
install-bin-strip : all
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install-bin