comparison configure @ 35372:9d626905f38b

Add a version script to hide all symbols. This should give better startup performance at least and reduces the stripped binary size by about 500 kB for me. However it means that stripped binaries will give only completely useless backtraces since the compiler will no be able to find the name of even a single function.
author reimar
date Fri, 23 Nov 2012 20:53:54 +0000
parents af0fccca2dd7
children 1a510ca3a047
comparison
equal deleted inserted replaced
35371:af0fccca2dd7 35372:9d626905f38b
7780 echores "yes" 7780 echores "yes"
7781 else 7781 else
7782 echores "no" 7782 echores "no"
7783 fi 7783 fi
7784 7784
7785 echocheck "linker support for --version-script"
7786 if cflag_check "-Wl,--version-script,binary.ver" ; then
7787 extra_ldflags="-Wl,--version-script,binary.ver $extra_ldflags"
7788 echores "yes"
7789 else
7790 echores "no"
7791 fi
7792
7785 7793
7786 # Dynamic linking flags 7794 # Dynamic linking flags
7787 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) 7795 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
7788 ld_dl_dynamic='' 7796 ld_dl_dynamic=''
7789 freebsd || netbsd || openbsd || dragonfly || bsdos && ld_dl_dynamic='-rdynamic' 7797 freebsd || netbsd || openbsd || dragonfly || bsdos && ld_dl_dynamic='-rdynamic'