mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
- don't add separate debug symbol file to the binary distribution,
if it's built with debugging enabled or not stripped (save disk space)
This commit is contained in:
parent
bfdaffb892
commit
909596e030
1 changed files with 5 additions and 1 deletions
|
|
@ -276,7 +276,11 @@ if ($opt_stage <= 3)
|
||||||
my $flags= "";
|
my $flags= "";
|
||||||
log_timestamp();
|
log_timestamp();
|
||||||
log_system("rm -fr mysql-3* mysql-4* $pwd/$host/*.tar.gz");
|
log_system("rm -fr mysql-3* mysql-4* $pwd/$host/*.tar.gz");
|
||||||
|
# No need to add the debug symbols, if the binaries are not stripped (saves space)
|
||||||
|
unless ($opt_with_debug || $opt_no_strip)
|
||||||
|
{
|
||||||
log_system("nm -n sql/mysqld | gzip -9 -v 2>&1 > sql/mysqld.sym.gz | cat");
|
log_system("nm -n sql/mysqld | gzip -9 -v 2>&1 > sql/mysqld.sym.gz | cat");
|
||||||
|
}
|
||||||
|
|
||||||
$flags.= "--no-strip" if ($opt_no_strip || $opt_with_debug);
|
$flags.= "--no-strip" if ($opt_no_strip || $opt_with_debug);
|
||||||
check_system("scripts/make_binary_distribution --tmp=$opt_tmp --suffix=$opt_suffix $flags",".tar.gz created");
|
check_system("scripts/make_binary_distribution --tmp=$opt_tmp --suffix=$opt_suffix $flags",".tar.gz created");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue