pkgsStatic.giflib: fix build (#547234)

This commit is contained in:
Peder Bergebakken Sundt
2026-08-13 20:44:34 +00:00
committed by GitHub

View File

@@ -57,11 +57,9 @@ stdenv.mkDerivation (finalAttrs: {
''
+ lib.optionalString stdenv.hostPlatform.isStatic ''
# Upstream build system does not support NOT building shared libraries.
sed -i '/all:/ s/$(LIBGIFSO)//' Makefile
sed -i '/all:/ s/$(LIBUTILSO)//' Makefile
sed -i '/-m 755 $(LIBGIFSO)/ d' Makefile
sed -i '/ln -sf $(LIBGIFSOVER)/ d' Makefile
sed -i '/ln -sf $(LIBGIFSOMAJOR)/ d' Makefile
substituteInPlace Makefile \
--replace-fail "all: shared-lib static-lib $(UTILS)" "all: static-lib $(UTILS)" \
--replace-fail "install-lib: install-static-lib install-shared-lib" "install-lib: install-static-lib"
'';
passthru.tests = {