head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.22 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.20 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.18 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.16 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.14 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.12 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.10 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.8 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.6 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.4 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2023.06.27.10.44.47; author riastradh; state Exp; branches; next ; commitid 9YfRUes7zChTDzuE; desc @@ 1.1 log @devel/nss: Fix cross-build under TOOLBASE/LOCALBASE split. Omit needless TOOL_DEPENDS on nspr; patch the problem away instead. @ text @$NetBSD$ Avoid passing target's EXTRA_SHARED_LIBS for tool build when cross-compiling. --- nss/coreconf/nsinstall/Makefile.orig 2023-05-05 17:06:27.000000000 +0000 +++ nss/coreconf/nsinstall/Makefile @@@@ -38,6 +38,16 @@@@ ifdef NATIVE_LDFLAGS LDFLAGS=$(NATIVE_LDFLAGS) endif +# Note: `ifdef' is not actually `if defined', it's `if defined with a +# non-empty definition pre-expansion', which means that even if you +# explicitly set NATIVE_EXTRA_SHARED_LIBS= on the command-line, the +# `ifdef NATIVE_EXTRA_SHARED_LIBS' branch is ignored. Using this +# bizarre `ifneq ($(origin NATIVE_EXTRA_SHARED_LIBS),undefined)' +# contraption works around that misfeature of gmake. +ifneq ($(origin NATIVE_EXTRA_SHARED_LIBS),undefined) +EXTRA_SHARED_LIBS=$(NATIVE_EXTRA_SHARED_LIBS) +endif + include $(DEPTH)/coreconf/rules.mk # Redefine MAKE_OBJDIR for just this directory @