pkgsrc-Changes archive

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

CVS commit: pkgsrc/doc



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Sat Jun 10 01:58:20 UTC 2023

Modified Files:
        pkgsrc/doc: HOWTO-dev-crosscompile

Log Message:
doc/HOWTO-dev-crosscompile: Handle undefined USE_CROSS_COMPILE.

bsd.prefs.mk doesn't guarantee it is defined.  Fixes mistake in
previous.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/doc/HOWTO-dev-crosscompile

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

Modified files:

Index: pkgsrc/doc/HOWTO-dev-crosscompile
diff -u pkgsrc/doc/HOWTO-dev-crosscompile:1.4 pkgsrc/doc/HOWTO-dev-crosscompile:1.5
--- pkgsrc/doc/HOWTO-dev-crosscompile:1.4       Fri Jun  9 23:54:10 2023
+++ pkgsrc/doc/HOWTO-dev-crosscompile   Sat Jun 10 01:58:20 2023
@@ -1,7 +1,7 @@
 Cross-compilation in pkgsrc (developer's guide)         -*- outline -*-
 Taylor R. Campbell <riastradh%NetBSD.org@localhost>
 
-$NetBSD: HOWTO-dev-crosscompile,v 1.4 2023/06/09 23:54:10 riastradh Exp $
+$NetBSD: HOWTO-dev-crosscompile,v 1.5 2023/06/10 01:58:20 riastradh Exp $
 
 These are some notes on how to make your package cross-compilable.
 There is no single recipe for it -- each package is different, and
@@ -64,7 +64,7 @@ pass in the pkgsrc make variables NATIVE
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${USE_CROSS_COMPILE:tl} == "yes"
+.if ${USE_CROSS_COMPILE:U:tl} == "yes"
 CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
 CONFIGURE_ENV+= CXX_FOR_BUILD=${NATIVE_CXX:Q}
 CONFIGURE_ENV+= LD_FOR_BUILD=${NATIVE_LD:Q}
@@ -98,7 +98,7 @@ pre-answer the tests for autoconf:
 
 .include "../../bsd.prefs.mk"
 
-.if ${USE_CROSS_COMPILE:tl} == "yes"
+.if ${USE_CROSS_COMPILE:U:tl} == "yes"
 # Configure wants to check for /dev/random but can't.  We know NetBSD
 # always has a /dev/random, so inform autoconf of the fact.
 CONFIGURE_ENV.NetBSD+= ac_cv_file__dev_random=yes



Home | Main Index | Thread Index | Old Index