pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/configure



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Fri Apr 12 19:54:56 UTC 2024

Modified Files:
        pkgsrc/mk/configure: gnu-configure.mk

Log Message:
mk/configure/gnu-configure.mk: Set --target too if requested.

No change to existing builds because nothing sets
USE_GNU_CONFIGURE_TARGET yet.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/mk/configure/gnu-configure.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/configure/gnu-configure.mk
diff -u pkgsrc/mk/configure/gnu-configure.mk:1.31 pkgsrc/mk/configure/gnu-configure.mk:1.32
--- pkgsrc/mk/configure/gnu-configure.mk:1.31   Sat Jan 13 20:09:28 2024
+++ pkgsrc/mk/configure/gnu-configure.mk        Fri Apr 12 19:54:56 2024
@@ -1,4 +1,4 @@
-# $NetBSD: gnu-configure.mk,v 1.31 2024/01/13 20:09:28 riastradh Exp $
+# $NetBSD: gnu-configure.mk,v 1.32 2024/04/12 19:54:56 riastradh Exp $
 #
 # Package-settable variables:
 #
@@ -40,7 +40,7 @@ _PKG_VARS.gnu-configure=      \
        GNU_CONFIGURE_LIBDIR GNU_CONFIGURE_INFODIR GNU_CONFIGURE_MANDIR \
        CONFIGURE_HAS_LIBDIR CONFIGURE_HAS_MANDIR CONFIGURE_HAS_INFODIR \
        OVERRIDE_DIRDEPTH.configure \
-       USE_GNU_CONFIGURE_HOST
+       USE_GNU_CONFIGURE_HOST USE_GNU_CONFIGURE_TARGET
 
 HAS_CONFIGURE=                 defined
 OVERRIDE_GNU_CONFIG_SCRIPTS=   defined
@@ -85,6 +85,7 @@ CONFIGURE_ARGS+=      --libdir=${GNU_CONFIGUR
 .endif
 
 USE_GNU_CONFIGURE_HOST?=       yes
+USE_GNU_CONFIGURE_TARGET?=     no # enable for toolchain packages
 .if !empty(USE_GNU_CONFIGURE_HOST:M[yY][eE][sS])
 .  if !empty(TOOLS_USE_CROSS_COMPILE:M[yY][eE][sS])
 CONFIGURE_ARGS+=       --build=${NATIVE_MACHINE_GNU_PLATFORM:Q}
@@ -92,6 +93,9 @@ CONFIGURE_ARGS+=      --build=${NATIVE_MACHIN
 CONFIGURE_ARGS+=       --build=${MACHINE_GNU_PLATFORM:Q}
 .  endif
 CONFIGURE_ARGS+=       --host=${MACHINE_GNU_PLATFORM:Q}
+.  if ${USE_GNU_CONFIGURE_TARGET:tl} == "yes"
+CONFIGURE_ARGS+=       --target=${TARGET_MACHINE_GNU_PLATFORM:Q}
+.  endif
 .endif
 
 # PKGINFODIR is the subdirectory of ${PREFIX} into which the info



Home | Main Index | Thread Index | Old Index