Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 19442

Summary: CFLAGS are not passed to uw-imap build
Product: Gentoo Linux Reporter: Ilya Volynets (RETIRED) <iluxa>
Component: [OLD] ServerAssignee: foser (RETIRED) <foser>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix the problem

Description Ilya Volynets (RETIRED) gentoo-dev 2003-04-16 17:39:15 UTC
CFLAGS from make.conf do not make it to uw-imap build. Following patch fixes it
--- uw-imap-2002b.ebuild.orig   Wed Apr 16 09:42:58 2003
+++ uw-imap-2002b.ebuild        Wed Apr 16 09:50:23 2003
@@ -24,7 +24,6 @@
        cd ${S}/src/osdep/unix/
        cp Makefile Makefile.orig
        sed \
-               -e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \
                -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \
                -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
                < Makefile.orig > Makefile
@@ -34,7 +33,10 @@
 src_compile() {                           
        if use ssl; then
                cd ${S}
-               make lnp SPECIALAUTHENTICATORS=ssl SSLTYPE=unix.nopwd \
+               make lnp SPECIALAUTHENTICATORS=ssl \
+                        SSLTYPE=unix.nopwd \
+                        EXTRACFLAGS="${CFLAGS}" \
+                        EXTRALDFLAGS="${LDFLAGS}" \
                        || die
 
                local i
@@ -60,7 +62,10 @@
                        umask 022
                done
        else
-               make lnp || die
+               make lnp \
+                        EXTRACFLAGS="${CFLAGS}" \
+                        EXTRALDFLAGS="${LDFLAGS}" \
+               || die
        fi
 }



Reproducible: Always
Steps to Reproduce:
Comment 1 Ilya Volynets (RETIRED) gentoo-dev 2003-04-16 17:41:22 UTC
Created attachment 10761 [details, diff]
Patch to fix the problem
Comment 2 foser (RETIRED) gentoo-dev 2003-05-23 14:04:27 UTC
it seems our current setup directly reflect our CFLAGS settings and yours the basic setting "-g -fno-omit<blah> -O6" + our CFLAGS . I prefer our current way of doing things. And i don't see any benefit in providing LDFLAGS .