Summary: | courier-authlib: cannot build: "ld: unrecognized option '-Wl'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
Component: | Current packages | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Skwar
2004-12-05 21:46:10 UTC
because you compile mysql with that LDFLAGS. open /usr/bin/mysql_config, commented #ldflags='-Wl,-O1' then try again. Well, yes, I do have that line in /usr/bin/mysql_config. Why should I comment the line? Is the problem, that I wanted to compile authlib with LDFLAGS="-Wl,-O1"? > Well, yes, I do have that line in /usr/bin/mysql_config. Why should I comment the line? It's just a quick workaround unless you want to reompile mysql with a correct LDFLAGS, because the courier-authlib use `mysql_config --libs` for its mysql support linking and prepend W to all of them. In your case, something looks like this: # mysql_config --libs output -Wl,-O1 -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto will become: -W,Wl, -W,O1 -W,L/usr/lib/mysql -W,lmysqlclient ... so: /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl'. bug #70367 will explain to you that your LDFLAGS is not valid. Ah, okay, thanks a lot for the pointer! Tuan, could you please have a look at bug #73622 (http://bugs.gentoo.org/show_bug.cgi?id=73622)? Thanks a lot! |