diff options
author | lenz@mysql.com <> | 2002-12-23 14:36:40 +0100 |
---|---|---|
committer | lenz@mysql.com <> | 2002-12-23 14:36:40 +0100 |
commit | c0ed25283f29498f2cfd4dd3fa7cabd5558e5a4d (patch) | |
tree | 3bd92d59925233a3d96867614e50c49768219396 /ltconfig | |
parent | 446b9c0768628143e0a52b66ede392823aa89b71 (diff) | |
download | mariadb-git-c0ed25283f29498f2cfd4dd3fa7cabd5558e5a4d.tar.gz |
- Applied various patches provided by Christian Hammers (MySQL maintainer
for the Debian project) to fix some architecture-specific problems
and some bugs
Diffstat (limited to 'ltconfig')
-rwxr-xr-x | ltconfig | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3009,6 +3009,16 @@ hardcode_action=$hardcode_action # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec +# Check if debuild is being run by the current shell. If it is then, +# the DEB_BUILD_ARCH variable should be of non-zero length, indicating +# that we are in the middle of a Debian package build (assuming the +# user isn't doing anything strange with environment variables). +if test -n "`dpkg-architecture -qDEB_BUILD_ARCH`" && ps | grep debuild | grep -v grep > /dev/null; then + # Debian policy mandates that rpaths should not be encoded into a binary + # so it is overridden. + hardcode_libdir_flag_spec=" -D_DEBIAN_PATCHED_LIBTOOL_ " +fi + # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$hardcode_libdir_separator |