git: f6e77cb8c146 - main - include: Allow SDESTDIR to be overridden

From: Stephen J. Kiernan <stevek_at_FreeBSD.org>
Date: Wed, 27 Mar 2024 23:19:00 UTC
The branch main has been updated by stevek:

URL: https://cgit.FreeBSD.org/src/commit/?id=f6e77cb8c1463704ed2817ea529c6b237fb8909b

commit f6e77cb8c1463704ed2817ea529c6b237fb8909b
Author:     Stephen J. Kiernan <stevek@FreeBSD.org>
AuthorDate: 2024-03-27 22:13:00 +0000
Commit:     Stephen J. Kiernan <stevek@FreeBSD.org>
CommitDate: 2024-03-27 23:18:43 +0000

    include: Allow SDESTDIR to be overridden
    
    Obtained from:  Juniper Networks, Inc.
    Reviewed by:    sjg
    Differential Revision:  https://reviews.freebsd.org/D44540
---
 include/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/Makefile b/include/Makefile
index c15446010a52..d9f0951c94a0 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -347,7 +347,7 @@ _MARCHS+=	x86
 
 META_TARGETS+=	compat
 stage_includes: ${SHARED}
-SDESTDIR=	${SYSROOT:U${DESTDIR}}
+SDESTDIR?=	${SYSROOT:U${DESTDIR}}
 
 # Take care of stale directory-level symlinks.
 # Note: The "|| true" after find is needed in case one of the directories does