nixpkgs/pkgs/development/libraries/giflib/mingw-install-exes.patch
Jan Tojnar 007173a9db pkgsCross.mingwW64.giflib: fix build
It was failing with:

    x86_64-w64-mingw32-ld: qprintf.o:qprintf.c:(.text+0xb9): undefined reference to `GifErrorString'

and then

    install gif2rgb gifbuild giffix giftext giftool gifclrmp "/nix/store/vcik0mlp8756g2lpmzbjw3v8mhn1529i-giflib-x86_64-w64-mingw32-5.2.1/bin"
    install: cannot stat 'gif2rgb': No such file or directory
2023-07-26 20:54:46 +03:00

12 lines
373 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -92,7 +92,7 @@
install: all install-bin install-include install-lib install-man
install-bin: $(INSTALLABLE)
$(INSTALL) -d "$(DESTDIR)$(BINDIR)"
- $(INSTALL) $^ "$(DESTDIR)$(BINDIR)"
+ $(INSTALL) $(^:=.exe) "$(DESTDIR)$(BINDIR)"
install-include:
$(INSTALL) -d "$(DESTDIR)$(INCDIR)"
$(INSTALL) -m 644 gif_lib.h "$(DESTDIR)$(INCDIR)"