summaryrefslogtreecommitdiffstats
path: root/gnu/ada
diff options
context:
space:
mode:
authorEric Sandall2008-03-17 22:36:28 -0700
committerEric Sandall2008-04-08 09:26:43 -0700
commitff59752992951c915d773ab1299e45f5fa98105d (patch)
treecb2023c8ef45296ceb33c3d28b250e2784ac61d3 /gnu/ada
parent5adc23660a6f172692f0aa2cd54cf0fe534b3c7e (diff)
ada: x86_64 build fix, otherwise tries to compile as x86_64-unknown-linux-gnu instead of x86_64-pc-linux-gnu and breaks
(cherry-picked from commit 68dd1e5665a0b28b7e81b5f31f99e568bcaa9b24) (cherry picked from commit ae1b647e5b0f60f244ca726ec466d99d464aa5ba)
Diffstat (limited to 'gnu/ada')
-rwxr-xr-xgnu/ada/BUILD4
-rw-r--r--gnu/ada/HISTORY5
2 files changed, 9 insertions, 0 deletions
diff --git a/gnu/ada/BUILD b/gnu/ada/BUILD
index a03ca313fe..7f753afaf9 100755
--- a/gnu/ada/BUILD
+++ b/gnu/ada/BUILD
@@ -9,6 +9,10 @@ persistent_read gcc GCC_LDFLAGS LDFLAGS &&
ADA_PATH=gnat-4.1.1-i386-pc-linux-gnu &&
PATH=$SOURCE_DIRECTORY/$ADA_PATH/bin:$PATH &&
+if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]; then
+ OPTS="--build=x86_64-pc-linux-gnu $OPTS"
+fi &&
+
cd $SOURCE_DIRECTORY.bld &&
$SOURCE_DIRECTORY/configure \
--host=$HOST \
diff --git a/gnu/ada/HISTORY b/gnu/ada/HISTORY
index aac856f216..941288e6e9 100644
--- a/gnu/ada/HISTORY
+++ b/gnu/ada/HISTORY
@@ -3,6 +3,11 @@
NOTE: Need to update SOURCE3 (gnat-4.1.1) for this to work on x86
and need to create other pre-built gnat's for other architectures
* DEPENDS: Depends on gmp and mpfr
+ * BUILD: Pass --build=x86_64-pc-linux-gnu for x86_64, only way I found
+ to get around this warning:
+ configure: WARNING: If you wanted to set the --build type, don't use
+ --host. If a cross compiler is detected then cross compile mode will
+ be used.
2008-02-05 Eric Sandall <sandalle@sourcemage.org>
* DETAILS: Updated to 4.2.3