mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
51f3e0049f
Added build scripts for 32 bit x86 architecture on Solaris. Renamed some scripts for consistency. Changed to dynamic linking of libgcc. BUILD/compile-solaris-amd64: Changed to dynamic linking of libgcc. The -static-libgcc was a legacy of the original build scripts. -R (analogous to -L link time search path) is a Solaris mechanism to ensure a needed lib directory is searched at runtime. In Solaris 10, gcc comes bundled, under /usr/sfw, allowing to use it without creating dependency problems. This allows eg. benefiting from ordinary system patch maintenance. BUILD/compile-solaris-amd64-debug: Changed to dynamic linking of libgcc. The -static-libgcc was a legacy of the original build scripts. -R (analogous to -L link time search path) is a Solaris mechanism to ensure a needed lib directory is searched at runtime. In Solaris 10, gcc comes bundled, under /usr/sfw, allowing to use it without creating dependency problems. This allows eg. benefiting from ordinary system patch maintenance.
32 lines
1.1 KiB
Bash
Executable file
32 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
# Build setup for Solaris 10
|
|
|
|
# Make the Sun Freeware packages use the bundled Perl, instead of their own:
|
|
# ln -s `which perl` /usr/local/bin
|
|
# Your $PATH needs to include (in this order):
|
|
# /usr/local/bin:/usr/sfw/bin:/usr/ccs/bin
|
|
# (For Sun Freeware, bundled GNU utilities, Solaris ar, etc.)
|
|
#
|
|
# Required packages from http://sunfreeware.com/indexintel10.html :
|
|
# (The GNU m4 bundled with Solaris is too old.)
|
|
# automake-1.10.2-sol10-x86-local.gz
|
|
# autoconf-2.63-sol10-x86-local.gz
|
|
# m4-1.4.12-sol10-x86-local.gz
|
|
# libsigsegv-2.6-sol10-x86-local.gz
|
|
# libtool-1.5.24-sol10-x86-local.gz
|
|
# ( how to install these packages:
|
|
# wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/automake-1.10.2-sol10-x86-local.gz
|
|
# gunzip automake-1.10.2-sol10-x86-local.gz
|
|
# pkgadd -d automake-1.10.2-sol10-x86-local
|
|
# )
|
|
|
|
path=`dirname $0`
|
|
. "$path/SETUP.sh"
|
|
extra_flags="$amd64_cflags -D__sun -m64 -mtune=athlon64"
|
|
extra_configs="$amd64_configs $max_configs --with-libevent"
|
|
|
|
LDFLAGS="-lmtmalloc -R/usr/sfw/lib/64"
|
|
export LDFLAGS
|
|
|
|
. "$path/FINISH.sh"
|