Bug 146871 - apxs does not honour CC and CFLAGS environment variables
Summary: apxs does not honour CC and CFLAGS environment variables
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: 3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-02 12:06 UTC by Nigel Horne
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-02 12:08:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nigel Horne 2005-02-02 12:06:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
apxs ignores CC and CFLAGS

Version-Release number of selected component (if applicable):
httpd-devel-2.0.52-3.1

How reproducible:
Always

Steps to Reproduce:
1. CC=ffff /usr/sbin/apxs -i -a -c foo.c
2.
3.
    

Actual Results:  /bin/sh /usr/lib/apr/build/libtool --silent
--mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0
-I/usr/include/httpd  -c -o mod_spambot.lo mod_spambot.c && touch
mod_spambot.slo


Expected Results:  /bin/sh /usr/lib/apr/build/libtool --silent
--mode=compile ffff -prefer-pic -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0
-I/usr/include/httpd  -c -o mod_spambot.lo mod_spambot.c && touch
mod_spambot.slo


Additional info:

Comment 1 Joe Orton 2005-02-02 12:08:12 UTC
This is working as intended; apxs will ensure that the module is
compiled with the same $CC setting as httpd itself.  You can pass
extra $CFLAGS to apxs without issue, just on the command-line not via
the environment.


Note You need to log in before you can comment on or make changes to this bug.