From 3247f0051ddbb9868f3d5f393166b5f4359ece84 Mon Sep 17 00:00:00 2001 From: "lenz@mysql.com" <> Date: Thu, 2 Dec 2004 09:44:03 +0100 Subject: [PATCH 1/2] - added some BUILD/compile-ppc* build scripts to ease building on LinuxPPC - added ppc_cflags to BUILD/SETUP.sh --- BUILD/SETUP.sh | 1 + BUILD/compile-ppc | 10 ++++++++++ BUILD/compile-ppc-debug | 13 +++++++++++++ BUILD/compile-ppc-debug-max | 13 +++++++++++++ BUILD/compile-ppc-max | 13 +++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 BUILD/compile-ppc create mode 100644 BUILD/compile-ppc-debug create mode 100644 BUILD/compile-ppc-debug-max create mode 100644 BUILD/compile-ppc-max diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh index f8baf317e72..5f4233b8371 100644 --- a/BUILD/SETUP.sh +++ b/BUILD/SETUP.sh @@ -43,6 +43,7 @@ cxx_warnings="$global_warnings -Woverloaded-virtual -Wsign-promo -Wreorder -Wcto alpha_cflags="-mcpu=ev6 -Wa,-mev6" # Not used yet pentium_cflags="-mcpu=pentiumpro" +ppc_cflags="-mpowerpc -mcpu=powerpc" sparc_cflags="" # be as fast as we can be without losing our ability to backtrace diff --git a/BUILD/compile-ppc b/BUILD/compile-ppc new file mode 100644 index 00000000000..d248ecf2677 --- /dev/null +++ b/BUILD/compile-ppc @@ -0,0 +1,10 @@ +#! /bin/sh + +path=`dirname $0` +. "$path/SETUP.sh" + +extra_flags="$ppc_cflags $fast_cflags" +extra_configs="$static_link" +strip=yes + +. "$path/FINISH.sh" diff --git a/BUILD/compile-ppc-debug b/BUILD/compile-ppc-debug new file mode 100644 index 00000000000..2be11eaaf22 --- /dev/null +++ b/BUILD/compile-ppc-debug @@ -0,0 +1,13 @@ +#! /bin/sh + +path=`dirname $0` +. "$path/SETUP.sh" + +extra_flags="$ppc_cflags $debug_cflags" +c_warnings="$c_warnings $debug_extra_warnings" +cxx_warnings="$cxx_warnings $debug_extra_warnings" +extra_configs="$debug_configs " + +extra_configs="$extra_configs" + +. "$path/FINISH.sh" diff --git a/BUILD/compile-ppc-debug-max b/BUILD/compile-ppc-debug-max new file mode 100644 index 00000000000..9d67b46601a --- /dev/null +++ b/BUILD/compile-ppc-debug-max @@ -0,0 +1,13 @@ +#! /bin/sh + +path=`dirname $0` +. "$path/SETUP.sh" + +extra_flags="$ppc_cflags $debug_cflags" +c_warnings="$c_warnings $debug_extra_warnings" +cxx_warnings="$cxx_warnings $debug_extra_warnings" +extra_configs="$debug_configs" + +extra_configs="$extra_configs --with-berkeley-db --with-innodb --without-isam --with-embedded-server --with-openssl --with-raid --with-vio --with-ndbcluster" + +. "$path/FINISH.sh" diff --git a/BUILD/compile-ppc-max b/BUILD/compile-ppc-max new file mode 100644 index 00000000000..f7193eb8aca --- /dev/null +++ b/BUILD/compile-ppc-max @@ -0,0 +1,13 @@ +#! /bin/sh + +path=`dirname $0` +. "$path/SETUP.sh" + +extra_flags="$ppc_cflags $fast_cflags -g" +#strip=yes + +extra_configs="$extra_configs --with-innodb --with-berkeley-db \ + --with-embedded-server --enable-thread-safe-client \ + --with-openssl --with-vio --with-raid --with-ndbcluster" + +. "$path/FINISH.sh" From c7038d1df6d12bd1c4f6e323cf0654cded5f2cab Mon Sep 17 00:00:00 2001 From: "lenz@mysql.com" <> Date: Thu, 2 Dec 2004 10:11:28 +0100 Subject: [PATCH 2/2] - fixed file permissions (need execute bits set) --- BUILD/compile-ppc | 0 BUILD/compile-ppc-debug | 0 BUILD/compile-ppc-debug-max | 0 BUILD/compile-ppc-max | 0 4 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 BUILD/compile-ppc mode change 100644 => 100755 BUILD/compile-ppc-debug mode change 100644 => 100755 BUILD/compile-ppc-debug-max mode change 100644 => 100755 BUILD/compile-ppc-max diff --git a/BUILD/compile-ppc b/BUILD/compile-ppc old mode 100644 new mode 100755 diff --git a/BUILD/compile-ppc-debug b/BUILD/compile-ppc-debug old mode 100644 new mode 100755 diff --git a/BUILD/compile-ppc-debug-max b/BUILD/compile-ppc-debug-max old mode 100644 new mode 100755 diff --git a/BUILD/compile-ppc-max b/BUILD/compile-ppc-max old mode 100644 new mode 100755