pkgsStatic.giflib: fix build

This commit is contained in:
Dmitry Bogatov
2026-07-29 20:49:58 +00:00
parent f58d77218b
commit c19ea82edf

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 = {