mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-16 12:20:10 +00:00
pkgsStatic.giflib: fix build (#547234)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user