Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365801 - =dev-tcltk/mysqltcl-3.05 does not respect CFLAGS="-O?"
Summary: =dev-tcltk/mysqltcl-3.05 does not respect CFLAGS="-O?"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 11:27 UTC by Agostino Sarubbo
Modified: 2011-05-03 11:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-05-03 11:27:41 UTC
from build log:

x86_64-pc-linux-gnu-gcc -pipe -DPACKAGE_NAME=\"mysqltcl\" -DPACKAGE_TARNAME=\"mysqltcl\" -DPACKAGE_VERSION=
\"3.05\" -DPACKAGE_STRING=\"mysqltcl\ 3.05\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_R
EENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUB
S=1  -I"/usr/include" -I/usr/include/mysql    -march=native -O2 -g0 -O2 -fomit-frame-pointer -Wall -Wno-imp
licit-int -fPIC -c `echo ./generic/mysqltcl.c` -o mysqltcl.o


amd64box ~ # emerge --info | grep CFLAGS
CFLAGS="-march=native -O2 -g0"


simple sed works for me.

sed -i 's/-pipe//g;s/-O2//g;s/-fomit-frame-pointer//g' configure || die
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-05-03 11:41:32 UTC
+  03 May 2011; Justin Lecher <jlec@gentoo.org> mysqltcl-3.05.ebuild:
+  Respect CFLAGS, #365801 thanks Agostino Sarubbo
+