Bug #9108 --with-mysqld-ldflags does not work. $MYSQL_EXTRA_LD_FLAGS maybe?
Submitted: 10 Mar 2005 22:18 Modified: 29 Mar 2005 16:40
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.0.23 and maybe 4.1.x OS:
Assigned to: CPU Architecture:Any

[10 Mar 2005 22:18] Christian Hammers
Description:
./configure talks about 
    --with-mysqld-ldflags   Extra linking arguments for mysqld
but it does not work. As you can see, I supplied this option but the corresponding
variable in the Makefile is empty. I assume $MYSQL_EXTRA_LD_FLAGS as environment
variable is now preferred but this should be documented in ./configure, too!

$ egrep -i mysqld.ldflags sql/Makefile
CONF_COMMAND = ./configure '--build=i386-linux' '--host=i386-linux' '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-raid' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--with-mysqld-ldflags=-lstatic' '--with-client-ldflags=-lstdc++' '--with-embedded-server' '--with-vio' '--without-openssl' '--with-server-suffix=_Debian-10' '--without-docs' '--without-bench' '--without-readline' '--with-extra-charsets=all' '--with-berkeley-db' '--with-innodb' 'CC=gcc' 'CFLAGS=-DBIG_JOINS=1 -O3' 'CXXFLAGS=-DBIG_JOINS=1 -felide-constructors -fno-rtti -O3' 'CXX=gcc' 'build_alias=i386-linux' 'host_alias=i386-linux'
mysqld_LDFLAGS =

How to repeat:
-

Suggested fix:
-
[11 Mar 2005 0:18] Christian Hammers
Oups, "-lstatic" ist no the right switch. (-static neither but -all-static seems to have worked)
[29 Mar 2005 16:40] MySQL Verification Team
Thanks you for the update.