Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77596 - net-misc/asterisk-1.0.3 doesn't use CFLAGS
Summary: net-misc/asterisk-1.0.3 doesn't use CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 15:17 UTC by Lars T. Mikkelsen
Modified: 2005-02-15 15:29 UTC (History)
0 users

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


Attachments
asterisk-1.0.3.ebuild.patch (asterisk-1.0.3.ebuild.patch,363 bytes, patch)
2005-01-11 15:18 UTC, Lars T. Mikkelsen
Details | Diff
asterisk-1.0.3.ebuild.patch (asterisk-1.0.3.ebuild.patch,416 bytes, patch)
2005-01-11 15:47 UTC, Lars T. Mikkelsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars T. Mikkelsen 2005-01-11 15:17:36 UTC
The package net-misc/asterisk-1.0.3 dosn't use the CFLAGS set in make.conf, as indicated by the following output:

# emerge --info | grep CFLAGS
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
# emerge asterisk
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/asterisk-1.0.3 to /
...
 * Building Asterisk...
./mkdep -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686     -DASTERISK_VERSION=\"1.0.3\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      `ls *.c`
...

I think this applies to all versions of Asterisk >= 1.0.0.
Comment 1 Lars T. Mikkelsen 2005-01-11 15:18:16 UTC
Created attachment 48249 [details, diff]
asterisk-1.0.3.ebuild.patch
Comment 2 Lars T. Mikkelsen 2005-01-11 15:47:11 UTC
Created attachment 48252 [details, diff]
asterisk-1.0.3.ebuild.patch

Furthermore, make sure we use the mcpu/march from CFLAGS (make.conf) and not
the march autodetected in the Makefile.
Comment 3 Stefan Knoblich (RETIRED) gentoo-dev 2005-01-26 17:52:04 UTC
work in progress... will put that into -r1
Comment 4 Stefan Knoblich (RETIRED) gentoo-dev 2005-02-15 15:29:49 UTC
chrb fixed that in 1.0.5