diff options
author | Magnus Hagander <magnus@hagander.net> | 2007-05-03 14:04:03 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2007-05-03 14:04:03 +0000 |
commit | 40f7b9e1697d23419cef8d4f4ea6a8f5a1d0e1e8 (patch) | |
tree | 768dde57a9ad88891f2cbb5129763cafc68886d0 /src | |
parent | 63735ca815772becf2c171df7f21ae8a49101115 (diff) | |
download | postgresql-40f7b9e1697d23419cef8d4f4ea6a8f5a1d0e1e8.tar.gz postgresql-40f7b9e1697d23419cef8d4f4ea6a8f5a1d0e1e8.zip |
Release builds generate different strangely formatted export names
for local symbols, that shouldn't be exported. This patch excludes them,
cutting down about 10,000 exported symbols and decreasing the binary size
by 20%.
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/msvc/gendef.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/gendef.pl b/src/tools/msvc/gendef.pl index df19771812b..7bd32cbf9a4 100644 --- a/src/tools/msvc/gendef.pl +++ b/src/tools/msvc/gendef.pl @@ -2,7 +2,7 @@ my @def; # # Script that generates a .DEF file for all objects in a directory # -# $PostgreSQL: pgsql/src/tools/msvc/gendef.pl,v 1.5 2007/03/17 14:01:01 mha Exp $ +# $PostgreSQL: pgsql/src/tools/msvc/gendef.pl,v 1.6 2007/05/03 14:04:03 mha Exp $ # die "Usage: gendef.pl <modulepath>\n" unless ($ARGV[0] =~ /\\([^\\]+$)/); @@ -36,6 +36,7 @@ while (<$ARGV[0]/*.obj>) next if $pieces[6] =~ /NULL_THUNK_DATA$/; next if $pieces[6] =~ /^__IMPORT_DESCRIPTOR/; next if $pieces[6] =~ /^__NULL_IMPORT/; + next if $pieces[6] =~ /^\?\?_C/; push @def, $pieces[6]; } |