1. I changed the CFLAGS from CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" to CFLAGS="-march=pentium4 -ggdb" yet, I can see the option "-fomit-frame-pointer" when I try to get a debug version of openssl library. I tried other options as well to get rid of the "-fomit-frame-pointer" flag and obtain a debug version, but failed to do so. Also see my post on the forum. Reproducible: Always Steps to Reproduce: 1. change CFLAGS=-march=pentium4 -ggdb" 2. emerge openssl-0.9.7c-r1.ebuild 3. Actual Results: I can still observe the "-fomit-frame-pointer" in the compiler output, even though its nowhere in the CFLAGS. Expected Results: Compiled without "-fomit-frame-pointer" Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r9) ================================================================= System uname: 2.4.20-gentoo-r9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/opt/tomcat/conf:/usr/kde/3.1/share/config:/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs nostrip noclean" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 apm crypt cups foomaticdb gif jpeg mpeg ncurses nls pdflib png spell truetype xml2 xmms directfb gtkhtml readline arts tetex aalib bonobo svga tcltk X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde opengl mozilla ldap cdr athena caps dga dnd doc fbcon gtk2 imap java javascript jikes neXt ofx pda pnp ppds prebuilt radeon sse threads tiff usb vim-with-x Xaw3d -oss -avi -encode -gnome -libg++ -mad -mikmod -motif -quicktime -xv -zlib -gdbm -berkdb -slang -nas -guile -esd -gphoto2"
Your `emerge --info` output says that you're still using the old setting, how exactly did you change your CFLAGS ?
I switched the CFLAGS back to what I usually use. Here's the emerge info output for the flags I used for debug version: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r9 ) ================================================================= System uname: 2.4.20-gentoo-r9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -ggdb" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config /usr/s hare/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/co nfig" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs nostrip noclean" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo http://gentoo.oregonstate.edu htt p://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 apm crypt cups foomaticdb gif jpeg mpeg ncurses nls pdflib png spell tr uetype xml2 xmms directfb gtkhtml readline arts tetex aalib bonobo svga tcltk X sdl gpm tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde opengl mozill a ldap cdr athena caps debug dga dnd doc fbcon gtk2 imap java javascript jikes n eXt ofx pda pnp ppds prebuilt radeon sse threads tiff usb vim-with-x Xaw3d -oss -avi -encode -gnome -libg++ -mad -mikmod -motif -quicktime -xv -zlib -gdbm -berk db -slang -nas -guile -esd -gphoto2" and here's and excerpt from the compilation output, where you can see that -fomit-frame-pointer is still being used as a flag, alongwith -ggdb! gcc -I../crypto -I.. -I../include -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -march=pentium4 -ggdb -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -c -o s3_pkt.o s3_pkt.c
it's because the openssl package itself puts in that flag
Oh! So should I just comment out line 52? sed -i -e "s/-O3/$CFLAGS/" -e "s/-m486//" Configure I was trying to insert a "-d" in the ./config lines.
Fixed in CVS, thanks!