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:           Sat Jan 13 20:09:28 UTC 2024

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

Log Message:
gnu-configure.mk: Don't use _OPSYS_MAX_CMDLEN_CMD in cross-builds.

This is a command to be run in the target system, so it doesn't work
to run it at build-time, which might be a different architecture and
operating system altogether giving unrelated answers.

No change to native builds because this just makes some existing
logic conditional on native builds.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 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.30 pkgsrc/mk/configure/gnu-configure.mk:1.31
--- pkgsrc/mk/configure/gnu-configure.mk:1.30   Tue Nov  7 13:19:47 2023
+++ pkgsrc/mk/configure/gnu-configure.mk        Sat Jan 13 20:09:28 2024
@@ -1,4 +1,4 @@
-# $NetBSD: gnu-configure.mk,v 1.30 2023/11/07 13:19:47 nia Exp $
+# $NetBSD: gnu-configure.mk,v 1.31 2024/01/13 20:09:28 riastradh Exp $
 #
 # Package-settable variables:
 #
@@ -51,7 +51,8 @@ CONFIGURE_ENV+=       LIBS=${LIBS:M*:Q}
 CONFIGURE_ENV+=        ac_given_INSTALL=${INSTALL:Q}\ -c\ -o\ ${BINOWN}\ -g\ ${BINGRP}
 
 .if (defined(USE_LIBTOOL) || !empty(PKGPATH:Mdevel/libtool-base)) && \
-    defined(_OPSYS_MAX_CMDLEN_CMD)
+    defined(_OPSYS_MAX_CMDLEN_CMD) && \
+    ${USE_CROSS_COMPILE:tl} != "yes"
 CONFIGURE_ENV+=        lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN_CMD:sh}
 .endif
 



Home | Main Index | Thread Index | Old Index