summaryrefslogtreecommitdiff
path: root/vos
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-15 00:15:52 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-15 00:15:52 +0000
commit5440bc8ef38c925fa824ae72b6c7ad2f21cbda6e (patch)
tree33768a0c14b79a902fd43151b9ff12ca93f62233 /vos
parentd31cdfb6c818e318a1eec541457f7fecc9be0d36 (diff)
downloadperl-5440bc8ef38c925fa824ae72b6c7ad2f21cbda6e.tar.gz
The first steps towards cross-compilation.
Abstract execution of compiled test executables with $run, and abstract transfer of files with $to and $from. Under cross-compilation the $run, $to, and $from will point to appropriate wrapper scripts, by default ssh and scp, but also rsh, rcp, and cp are supported. If not cross-compiling, they will be set to '', ':', and ':', respectively. With these patches I was able to get Configure for iPAQ ARM Linux on an Intel Linux about 95% right (only a few tests failed to execute or they produced incorrect results), and I was able to compile a functional miniperl. The symbol crosscompile renamed to be usecrosscompile, the corresponding C symbol from CROSSCOMPILE to USE_CROSS_COMPILE. p4raw-id: //depot/perl@10592
Diffstat (limited to 'vos')
-rw-r--r--vos/config.alpha.def2
-rw-r--r--vos/config.alpha.h10
-rw-r--r--vos/config.ga.def2
-rw-r--r--vos/config.ga.h10
4 files changed, 6 insertions, 18 deletions
diff --git a/vos/config.alpha.def b/vos/config.alpha.def
index 0fb92e3e91..5d437d85a6 100644
--- a/vos/config.alpha.def
+++ b/vos/config.alpha.def
@@ -15,7 +15,6 @@ $cpplast='-'
$cppminus='-'
$cpprun='cc -E -'
$cppstdin='cc -E'
-$crosscompile='undef'
$d_Gconvert='sprintf((b),"%.*g",(n),(x))'
$d_PRIeldbl='define'
$d_PRIfldbl='define'
@@ -503,6 +502,7 @@ $uquadtype='_error_'
$use5005threads='undef'
$use64bitall='undef'
$use64bitint='undef'
+$usecrosscompile='undef'
$usedl='undef'
$useithreads='undef'
$uselargefiles='undef'
diff --git a/vos/config.alpha.h b/vos/config.alpha.h
index 1b560b40bd..f610d327eb 100644
--- a/vos/config.alpha.h
+++ b/vos/config.alpha.h
@@ -962,12 +962,6 @@
*/
#define SH_PATH "/bin/sh" /**/
-/* CROSSCOMPILE:
- * This symbol, if defined, signifies that we our
- * build process is a cross-compilation.
- */
-/*#define CROSSCOMPILE /**/
-
/* INTSIZE:
* This symbol contains the value of sizeof(int) so that the C
* preprocessor can make decisions based on it.
@@ -1051,7 +1045,7 @@
* double, or a long double when applicable. Usual values are 2,
* 4 and 8. The default is eight, for safety.
*/
-#if defined(CROSSCOMPILE) || defined(MULTIARCH)
+#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
# define MEM_ALIGNBYTES 8
#else
#define MEM_ALIGNBYTES 8
@@ -1128,7 +1122,7 @@
* so the default case (for NeXT) is big endian to catch them.
* This might matter for NeXT 3.0.
*/
-#if defined(CROSSCOMPILE) || defined(MULTIARCH)
+#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
# ifdef __LITTLE_ENDIAN__
# if LONGSIZE == 4
# define BYTEORDER 0x1234
diff --git a/vos/config.ga.def b/vos/config.ga.def
index ffcd3cf814..7ad9bd0a8e 100644
--- a/vos/config.ga.def
+++ b/vos/config.ga.def
@@ -15,7 +15,6 @@ $cpplast='-'
$cppminus='-'
$cpprun='cc -E -'
$cppstdin='cc -E'
-$crosscompile='undef'
$d_Gconvert='sprintf((b),"%.*g",(n),(x))'
$d_PRIeldbl='define'
$d_PRIfldbl='define'
@@ -503,6 +502,7 @@ $uquadtype='_error_'
$use5005threads='undef'
$use64bitall='undef'
$use64bitint='undef'
+$usecrosscompile='undef'
$usedl='undef'
$useithreads='undef'
$uselargefiles='undef'
diff --git a/vos/config.ga.h b/vos/config.ga.h
index 7afd9a30f9..791d9374ee 100644
--- a/vos/config.ga.h
+++ b/vos/config.ga.h
@@ -962,12 +962,6 @@
*/
#define SH_PATH "/system/gnu_library/bin/bash.pm" /**/
-/* CROSSCOMPILE:
- * This symbol, if defined, signifies that we our
- * build process is a cross-compilation.
- */
-/*#define CROSSCOMPILE /**/
-
/* INTSIZE:
* This symbol contains the value of sizeof(int) so that the C
* preprocessor can make decisions based on it.
@@ -1051,7 +1045,7 @@
* double, or a long double when applicable. Usual values are 2,
* 4 and 8. The default is eight, for safety.
*/
-#if defined(CROSSCOMPILE) || defined(MULTIARCH)
+#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
# define MEM_ALIGNBYTES 8
#else
#define MEM_ALIGNBYTES 8
@@ -1128,7 +1122,7 @@
* so the default case (for NeXT) is big endian to catch them.
* This might matter for NeXT 3.0.
*/
-#if defined(CROSSCOMPILE) || defined(MULTIARCH)
+#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
# ifdef __LITTLE_ENDIAN__
# if LONGSIZE == 4
# define BYTEORDER 0x1234