$NetBSD: patch-makefile.conf,v 1.1 2025/09/04 13:02:46 dkazankov Exp $ Add externally settable options for gprbuild Add NetBSD support --- makefile.conf.orig 2024-12-20 16:02:53.000000000 +0200 +++ makefile.conf @@ -5,7 +5,7 @@ # # IMPORTANT: each time you change the definitions here make sure you run # $ make setup - +GPRBUILD_OPTIONS = # Is out of tree build ifneq ($(BLD_DIR), $(SRC_DIR)) GPROOTOPTS = --relocate-build-tree=$(BLD_DIR) --root-dir=$(SRC_DIR) @@ -213,8 +213,12 @@ ifeq ($(strip $(findstring freebsd, $(TARGET))),freebsd) PRJ_TARGET = freebsd else +ifeq ($(strip $(findstring netbsd, $(TARGET))),netbsd) + PRJ_TARGET = freebsd +else PRJ_TARGET = UNIX endif +endif OS = UNIX endif endif @@ -289,7 +293,7 @@ -XPRJ_TARGET=$(PRJ_TARGET) -XTARGET=$(TARGET) \ -XTHREAD_SANITIZER=$(THREAD_SANITIZER) \ -XSSL_DYNAMIC=$(SSL_DYNAMIC) -XTGT_DIR=$(TGT_DIR) \ - $(GPROOTOPTS) + $(GPROOTOPTS) $(GPRBUILD_OPTIONS) export GPROPTS GPR_STATIC = -XLIBRARY_TYPE=static -XXMLADA_BUILD=static