List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:August 19 2004 9:56pm
Subject:Re: Compilation error
View as plain text  
In the last episode (Aug 19), Casey Allen Shobe said:
> Dan Nelson said:
> > ^^^ Note the -static flag here
> > But you don't have a static libz (libz.a).  You've only got a dynamic
> > one.  Redhat usually puts the static libraries in a separate "-dev"
> > rpm.
> 
> Aha, yes.  This is a custom-built linux installation where I have built
> zlib dynamically-only, intentionally.  How can I make MySQL build against
> the dynamic library instead of the static?

Take -static out of the link line, of course :)  That's not the default
for a mysql source build, so you must have a LDFLAGS=-static env
variable or --with-mysqld-ldflags=-all-static configure flag somewhere.

-- 
	Dan Nelson
	dnelson@stripped
Thread
Compilation errorCasey Allen Shobe18 Aug
  • Re: Compilation errorMichael Stassen19 Aug
    • Re: Compilation errorCasey Allen Shobe19 Aug
      • Re: Compilation errorCasey Allen Shobe19 Aug
        • Re: Compilation errorDan Nelson19 Aug
          • Re: Compilation errorCasey Allen Shobe19 Aug
            • Re: Compilation errorDan Nelson19 Aug