Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bcd8cd13
Commit
bcd8cd13
authored
Feb 16, 2002
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated build scripts for new Linux build
parent
ad308746
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
8 deletions
+60
-8
Build-tools/Do-all-build-steps
Build-tools/Do-all-build-steps
+1
-1
Build-tools/Do-compile
Build-tools/Do-compile
+5
-1
Build-tools/Do-linux-build
Build-tools/Do-linux-build
+18
-0
Build-tools/Do-rpm
Build-tools/Do-rpm
+15
-1
strings/Makefile.am
strings/Makefile.am
+2
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+19
-4
No files found.
Build-tools/Do-all-build-steps
View file @
bcd8cd13
...
@@ -72,7 +72,7 @@ gmake -j 2
...
@@ -72,7 +72,7 @@ gmake -j 2
time gmake -j 2 distcheck
\
time gmake -j 2 distcheck
\
EXTRA_CONF_ARGS="--with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory
$EXTRA_CONFIG
"
EXTRA_CONF_ARGS="--with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory
$EXTRA_CONFIG
"
sh
$BD
/Build-tools/Do-rpm
sh
$BD
/Build-tools/Do-rpm
$*
rm -f
$TMP_SCRIPT
rm -f
$TMP_SCRIPT
END
END
...
...
Build-tools/Do-compile
View file @
bcd8cd13
...
@@ -7,7 +7,7 @@ $opt_tmp=$opt_version_suffix="";
...
@@ -7,7 +7,7 @@ $opt_tmp=$opt_version_suffix="";
$opt_help
=
$opt_Information
=
$opt_delete
=
$opt_debug
=
$opt_stage
=
$opt_rsh_mail
=
$opt_no_test
=
$opt_no_perl
=
$opt_with_low_memory
=
$opt_fast_benchmark
=
$opt_static_client
=
$opt_static_server
=
$opt_static_perl
=
$opt_sur
=
$opt_with_small_disk
=
$opt_local_perl
=
$opt_tcpip
=
$opt_build_thread
=
$opt_no_mysqltest
=
$opt_use_old_distribution
=
$opt_enable_shared
=
$opt_no_crash_me
=
$opt_no_strip
=
0
;
$opt_help
=
$opt_Information
=
$opt_delete
=
$opt_debug
=
$opt_stage
=
$opt_rsh_mail
=
$opt_no_test
=
$opt_no_perl
=
$opt_with_low_memory
=
$opt_fast_benchmark
=
$opt_static_client
=
$opt_static_server
=
$opt_static_perl
=
$opt_sur
=
$opt_with_small_disk
=
$opt_local_perl
=
$opt_tcpip
=
$opt_build_thread
=
$opt_no_mysqltest
=
$opt_use_old_distribution
=
$opt_enable_shared
=
$opt_no_crash_me
=
$opt_no_strip
=
0
;
$opt_innodb
=
$opt_bdb
=
0
;
$opt_innodb
=
$opt_bdb
=
0
;
GetOptions
("
Information
","
help
","
distribution=s
","
user=s
","
result=s
","
delete
","
no-test
","
no-mysqltest
","
perl-files=s
","
debug
","
config-options=s
","
config-env=s
","
stage=i
","
rsh-mail
","
with-low-memory
","
fast-benchmark
","
tmp=s
","
static-client
","
static-server
","
static-perl
","
no-perl
","
local-perl
","
perl-options=s
","
sur
","
with-small-disk
","
dbd-options=s
","
tcpip
","
suffix=s
","
build-thread=i
","
innodb
","
bdb
","
use-old-distribution
","
enable-shared
","
no-crash-me
","
no-strip
","
version-suffix=s
")
||
usage
();
GetOptions
("
Information
","
help
","
distribution=s
","
user=s
","
result=s
","
delete
","
no-test
","
no-mysqltest
","
perl-files=s
","
debug
","
config-options=s
","
config-env=s
","
stage=i
","
rsh-mail
","
with-low-memory
","
fast-benchmark
","
tmp=s
","
static-client
","
static-server
","
static-perl
","
no-perl
","
local-perl
","
perl-options=s
","
sur
","
with-small-disk
","
dbd-options=s
","
tcpip
","
suffix=s
","
build-thread=i
","
innodb
","
bdb
","
use-old-distribution
","
enable-shared
","
no-crash-me
","
no-strip
","
version-suffix=s
"
,
"
with-other-libc=s
) || usage();
usage() if (
$opt_help
||
$opt_Information
);
usage() if (
$opt_help
||
$opt_Information
);
usage() if (!
$opt_distribution
);
usage() if (!
$opt_distribution
);
...
@@ -147,6 +147,10 @@ if ($opt_stage <= 1)
...
@@ -147,6 +147,10 @@ if ($opt_stage <= 1)
{
{
$opt_config_options
.=
"
--with-client-ldflags=-all-static
";
$opt_config_options
.=
"
--with-client-ldflags=-all-static
";
}
}
if
(
$opt_with_other_libc
)
{
$opt_with_other_libc
=
"
--with-other-libc=
$opt_with_other_libc
";
}
if
(
!
$opt_enable_shared
)
if
(
!
$opt_enable_shared
)
{
{
$opt_config_options
.=
"
--disable-shared
";
# Default for binary versions
$opt_config_options
.=
"
--disable-shared
";
# Default for binary versions
...
...
Build-tools/Do-linux-build
0 → 100755
View file @
bcd8cd13
#! /bin/sh
set
-e
-x
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
BUILD/compile-pentium-max
--with-other-libc
=
$OTHER_LIBC_DIR
\
--with-comment
=
"Official MySQL Binary"
\
--prefix
=
/usr/local/mysql
--with-extra-charset
=
complex
\
--enable-thread-safe-client
--enable-local-infile
\
--with-server-suffix
=
-max
scripts/make_binary_distribution
make dist
Build-tools/Do-rpm
--local
BUILD/compile-pentium
--with-other-libc
=
$OTHER_LIBC_DIR
\
--with-comment
=
"Official MySQL Binary"
\
--prefix
=
/usr/local/mysql
--with-extra-charset
=
complex
\
--enable-thread-safe-client
--enable-local-infile
scripts/make_binary_distribution
Build-tools/Do-rpm
View file @
bcd8cd13
...
@@ -38,7 +38,21 @@ owner=my
...
@@ -38,7 +38,21 @@ owner=my
# Hard path!!
# Hard path!!
bpath
=
`
/bin/pwd
`
bpath
=
`
/bin/pwd
`
rpmdir
=
"/usr/src/redhat"
for
d
in
/usr/src/redhat /usr/src/packages
;
do
if
test
-d
"
$d
"
then
rpmdir
=
$d
fi
done
if
test
-z
"
$rpmdir
"
then
echo
"Could not find suitable rpmdir on this system"
exit
1
fi
logdir
=
"
$bpath
/Logs"
logdir
=
"
$bpath
/Logs"
###### Perl STUFF #####
###### Perl STUFF #####
...
...
strings/Makefile.am
View file @
bcd8cd13
...
@@ -51,7 +51,8 @@ EXTRA_DIST = ctype-big5.c ctype-czech.c ctype-euc_kr.c \
...
@@ -51,7 +51,8 @@ EXTRA_DIST = ctype-big5.c ctype-czech.c ctype-euc_kr.c \
strmake.c strnmov.c strmov.c strnlen.c
\
strmake.c strnmov.c strmov.c strnlen.c
\
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s
\
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s
\
strinstr-sparc.s strmake-sparc.s strmov-sparc.s
\
strinstr-sparc.s strmake-sparc.s strmov-sparc.s
\
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s
\
t_ctype.h
OMIT_DEPENDENCIES
=
pthread.h stdio.h __stdio.h stdlib.h __stdlib.h math.h
\
OMIT_DEPENDENCIES
=
pthread.h stdio.h __stdio.h stdlib.h __stdlib.h math.h
\
__math.h time.h __time.h unistd.h __unistd.h types.h
\
__math.h time.h __time.h unistd.h __unistd.h types.h
\
...
...
support-files/mysql.spec.sh
View file @
bcd8cd13
...
@@ -186,26 +186,36 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
...
@@ -186,26 +186,36 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
# Use the build root for temporary storage of the shared libraries.
# Use the build root for temporary storage of the shared libraries.
OTHER_LIBC_DIR
=
/usr/local/mysql-glibc
RBR
=
$RPM_BUILD_ROOT
RBR
=
$RPM_BUILD_ROOT
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
MBD
=
$RPM_BUILD_DIR
/mysql-%
{
mysql_version
}
if
test
-z
"
$RBR
"
-o
"
$RBR
"
=
"/"
if
test
-z
"
$RBR
"
-o
"
$RBR
"
=
"/"
then
then
echo
"RPM_BUILD_ROOT has
stupid
value"
echo
"RPM_BUILD_ROOT has
insecure
value"
exit
1
exit
1
fi
fi
rm
-rf
$RBR
rm
-rf
$RBR
mkdir
-p
$RBR
mkdir
-p
$RBR
# Build the shared libraries and mysqld-max
# We need to build shared libraries separate from mysqld-max because we
# are using --with-other-libc
BuildMySQL
"--
enable-shared --enable-thread-safe-client
--with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
BuildMySQL
"--
disable-shared --with-other-libc=
$OTHER_LIBC_DIR
--with-berkeley-db --with-innodb --with-mysqld-ldflags='-all-static' --with-server-suffix='-Max'"
# Save everything for debug
# Save everything for debug
# tar cf $RBR/all.tar .
# tar cf $RBR/all.tar .
# Save
shared libraries and
mysqld-max
# Save mysqld-max
mv
sql/mysqld sql/mysqld-max
mv
sql/mysqld sql/mysqld-max
nm
--numeric-sort
sql/mysqld-max
>
sql/mysqld-max.sym
nm
--numeric-sort
sql/mysqld-max
>
sql/mysqld-max.sym
# Save manual to avoid rebuilding
mv
Docs/manual.ps Docs/manual.ps.save
make distclean
mv
Docs/manual.ps.save Docs/manual.ps
#now build and save shared libraries
BuildMySQL
"--enable-shared --enable-thread-safe-client --without-server "
(
cd
libmysql/.libs
;
tar
cf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql/.libs
;
tar
cf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql_r/.libs
;
tar
rf
$RBR
/shared-libs.tar
*
.so
*
)
(
cd
libmysql_r/.libs
;
tar
rf
$RBR
/shared-libs.tar
*
.so
*
)
...
@@ -220,6 +230,7 @@ automake
...
@@ -220,6 +230,7 @@ automake
BuildMySQL
"--disable-shared"
\
BuildMySQL
"--disable-shared"
\
"--with-mysqld-ldflags='-all-static'"
\
"--with-mysqld-ldflags='-all-static'"
\
"--with-client-ldflags='-all-static'"
\
"--with-client-ldflags='-all-static'"
\
"--with-other-libc=
$OTHER_LIBC_DIR
"
\
"--without-berkeley-db --without-innodb"
"--without-berkeley-db --without-innodb"
nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
...
@@ -416,6 +427,10 @@ fi
...
@@ -416,6 +427,10 @@ fi
%changelog
%changelog
*
Fri Feb 15 2002 Sasha
- changed build to use
--with-other-libc
*
Fri Apr 13 2001 Monty
*
Fri Apr 13 2001 Monty
- Added mysqld-max to the distribution
- Added mysqld-max to the distribution
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment