Summary: | courier-authlib: cannot build: "ld: unrecognized option '-DHAVE_ERRNO_AS_DEFINE=1'" - error in mysql_config? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
Component: | Current packages | Assignee: | Tuan Van (RETIRED) <langthang> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | langthang |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Skwar
2004-12-06 21:28:59 UTC
did you try LDFLAGS="-Wl,-O1" and leave it out of your CFLAGS? No, I did not try LDFLAGS="-Wl,-O1", because that's a wrong syntax, isn't it? Well, with LDFLAGS=-Wl,-O1, I'll get bug #73513, won't I? :) Hmm... 06:49:32 askwar@alturo:~ $ mysql_config --cflags -I/usr/include/mysql -march=pentium4 -pipe -fomit-frame-pointer -Wl,-DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS Hm, why is there -Wl,-DHAVE.... in the output? In mysql_config: cflags="-I$pkgincludedir -march=pentium4 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -DHAVE_ERRNO_AS_DEFINE=1 -DUSE_OLD_FUNCTIONS " #note: end space! err, I mean LDFLAGS="-O1" Ah :) Yes, here's directly from my make.conf: CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -Wl,-O1" CXXFLAGS="-fomit-frame-pointer -pipe -O2 -march=pentium4" LDFLAGS="-O1" I added -Wl,-O1 to CFLAGS, because bug #70367 explained, that this is the correct syntax, isn't it? I am not a linker guru, I just pass on what I have read ;) see bug #65002 try with CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer". I don't think it is a good idea to have -Wl,-O1 in your CFLAGS and LDFLAGS="-O1" (it confuses the linker?), LDFLAGS="-O1" should do what you want. Yes, you're right. Now courier-authlib compiles just fine. Thanks! |