pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/dhcpcd



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Oct 29 12:08:21 UTC 2024

Modified Files:
        pkgsrc/net/dhcpcd: Makefile

Log Message:
net/dhcpcd: Pass --build and --host for cross-builds.

This custom configure script may not be quite compatible with
GNU_CONFIGURE=yes, but it's compatible enough for GNU --build and
--host options.

No change to native builds -- conditional on USE_CROSS_COMPILE
(though it ought to be harmless even if unconditional).


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 pkgsrc/net/dhcpcd/Makefile

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

Modified files:

Index: pkgsrc/net/dhcpcd/Makefile
diff -u pkgsrc/net/dhcpcd/Makefile:1.121 pkgsrc/net/dhcpcd/Makefile:1.122
--- pkgsrc/net/dhcpcd/Makefile:1.121    Fri May 24 16:22:48 2024
+++ pkgsrc/net/dhcpcd/Makefile  Tue Oct 29 12:08:21 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.121 2024/05/24 16:22:48 roy Exp $
+# $NetBSD: Makefile,v 1.122 2024/10/29 12:08:21 riastradh Exp $
 
 DISTNAME=              dhcpcd-10.0.8
 CATEGORIES=            net
@@ -53,6 +53,11 @@ CONFIGURE_ARGS+=     --with-hooks=ntp
 CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/examples
 CONFIGURE_ARGS+=       --privsepuser=${DHCPCD_USER}
 
+.if ${USE_CROSS_COMPILE:tl} == "yes"
+CONFIGURE_ARGS+=       --host=${MACHINE_GNU_PLATFORM:Q}
+CONFIGURE_ARGS+=       --build=${NATIVE_MACHINE_GNU_PLATFORM:Q}
+.endif
+
 EGDIR=                 ${PREFIX}/share/examples/dhcpcd
 INSTALL_MAKE_FLAGS+=   SYSCONFDIR=${EGDIR}
 CONF_FILES+=           ${EGDIR}/dhcpcd.conf ${PKG_SYSCONFDIR}/dhcpcd.conf



Home | Main Index | Thread Index | Old Index