$NetBSD: patch-gnatcoll__db2ada_Makefile,v 1.1 2025/07/11 18:08:32 dkazankov Exp $ Fix target calculation Add extra options to gprinstall --- gnatcoll_db2ada/Makefile.orig 2023-11-06 12:21:17.000000000 +0200 +++ gnatcoll_db2ada/Makefile @@ -75,7 +75,7 @@ # Load current setup if any -include makefile.setup -NORMALIZED_TARGET := $(subst normalized_target:,,$(wordlist 6,6,$(shell gprconfig --config=ada --target=$(TARGET) --mi-show-compilers))) +NORMALIZED_TARGET := $(lastword $(subst :, ,$(shell gprconfig --config=ada --target=$(TARGET) --mi-show-compilers | grep ' 1 normalized_target:'))) ifeq ($(NORMALIZED_TARGET),) $(error No toolchain found for target "$(TARGET)") endif @@ -91,11 +91,13 @@ # Used to pass extra options to GPRBUILD, like -d for instance GPRBUILD_OPTIONS= +GPRINSTALL_OPTIONS= BUILDER=gprbuild -p -m $(GTARGET) $(RBD) -j$(PROCESSORS) $(GPR_VARS) \ $(GPRBUILD_OPTIONS) INSTALLER=gprinstall -p -f --target=$(TARGET) $(GPR_VARS) \ - $(RBD) --mode=usage --no-project --sources-subdir=include/$(NAME) --prefix=$(prefix)$(integrated_install) + $(RBD) --mode=usage --no-project --sources-subdir=include/$(NAME) --prefix=$(prefix)$(integrated_install) \ + $(GPRINSTALL_OPTIONS) CLEANER=gprclean -q $(GPR_VARS) $(RBD) UNINSTALLER=$(INSTALLER) -p -f --install-name=$(NAME) --uninstall