head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.4 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @# @; 1.1 date 2025.10.03.11.54.06; author dkazankov; state Exp; branches; next ; commitid Yv5NRUb0BLYyn7dG; desc @@ 1.1 log @ada-aws-25: fix build error caused incorrect zlib detection and building @ text @$NetBSD: patch-makefile.conf,v 1.1 2025/09/04 13:02:46 dkazankov Exp $ Build zlib when it is not present only --- include/zlib/zlib.gpr.orig 2024-12-20 16:02:53.000000000 +0200 +++ include/zlib/zlib.gpr @@@@ -30,26 +30,21 @@@@ type Yes_No is ("Yes", "No"); Zlib_Activated : Yes_No := "No"; + Zlib_Path := External("ZLIB_PATH", "."); -- Always build the static Z library as needed by some AWS tools - case Shared.Library_Type is - when "static" | "static-pic" => - Zlib_Activated := "Yes"; - - when "relocatable" => case AWS_Config.Zlib_Exists is when "true" => Zlib_Activated := "No"; when "false" => Zlib_Activated := "Yes"; end case; - end case; case ZLib_Activated is when "No" => for Source_Dirs use (); - for Library_Dir use "."; + for Library_Dir use Zlib_Path; for Externally_Built use "true"; when "Yes" => for Source_Dirs use ("."); @