diff options
author | unknown <tsmith@ramayana.hindu.god> | 2008-02-18 12:18:36 -0700 |
---|---|---|
committer | unknown <tsmith@ramayana.hindu.god> | 2008-02-18 12:18:36 -0700 |
commit | 44dc35f209d434f19e000e89650305cdb9a09204 (patch) | |
tree | 8675b063683c390f8dc0914d2fcaa4d8c3cf8cec /scripts | |
parent | c627e9ab39b7940aef18b836267a2f3017eaa523 (diff) | |
parent | 4a80d5687734238fde09e74b8d66dd335f981815 (diff) | |
download | mariadb-git-44dc35f209d434f19e000e89650305cdb9a09204.tar.gz |
Merge ramayana.hindu.god:/home/tsmith/m/bk/build/50
into ramayana.hindu.god:/home/tsmith/m/bk/build/51
scripts/mysql_config.sh:
Auto merged
support-files/mysql.spec.sh:
Manual merge
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_config.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh index ae58655ed0f..8abad75bc2a 100644 --- a/scripts/mysql_config.sh +++ b/scripts/mysql_config.sh @@ -107,6 +107,16 @@ libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ " libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ " embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ " +if [ -r "$pkglibdir/libmygcc.a" ]; then + # When linking against the static library with a different version of GCC + # from what was used to compile the library, some symbols may not be defined + # automatically. We package the libmygcc.a from the build host, to provide + # definitions for those. Bugs 4921, 19561, 19817, 21158, etc. + libs="$libs -lmygcc " + libs_r="$libs_r -lmygcc " + embedded_libs="$embedded_libs -lmygcc " +fi + cflags="-I$pkgincludedir @CFLAGS@ " #note: end space! include="-I$pkgincludedir" @@ -116,6 +126,7 @@ include="-I$pkgincludedir" for remove in DDBUG_OFF DSAFEMALLOC USAFEMALLOC DSAFE_MUTEX \ DPEDANTIC_SAFEMALLOC DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \ DEXTRA_DEBUG DHAVE_purify O 'O[0-9]' 'xO[0-9]' 'W[-A-Za-z]*' \ + 'mtune=[-A-Za-z0-9]*' 'mcpu=[-A-Za-z0-9]*' 'march=[-A-Za-z0-9]*' \ Xa xstrconst "xc99=none" \ unroll2 ip mp restrict do |