#1975: Please allow CC override of default compiler
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Type: defect
Status: new | Priority: minor
Component: madwifi: makefiles | Version: v0.9.4
Keywords: | Patch_attached: 0
--------------------------------+-------------------------------------------
I have a (stock Debian) kernel built with gcc-4.1, which is installed on
the system. There is no 'gcc' (without version) executable, therefore I
normally execute "export CC=gcc-4.1" before building modules. When I try
to build madwifi I get the following error:
{{{
lazarus:/usr/src/madwifi-0.9.4# export CC=gcc-4.1
lazarus:/usr/src/madwifi-0.9.4# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.22-3-686/build SUBDIRS=/usr/src/madwifi-0.9.4
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-3-686'
CC [M] /usr/src/madwifi-0.9.4/ath/if_ath.o
CC [M] /usr/src/madwifi-0.9.4/ath/if_ath_pci.o
LD [M] /usr/src/madwifi-0.9.4/ath/ath_pci.o
CC [M] /usr/src/madwifi-0.9.4/ath_hal/ah_os.o
HOSTCC /usr/src/madwifi-0.9.4/ath_hal/uudecode
/bin/sh: gcc: command not found
make[3]: *** [/usr/src/madwifi-0.9.4/ath_hal/uudecode] Error 127
make[2]: *** [/usr/src/madwifi-0.9.4/ath_hal] Error 2
make[1]: *** [_module_/usr/src/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-3-686'
make: *** [modules] Error 2
}}}
If I go to /usr/bin and create a link gcc->gcc-4.1 the driver builds
correctly.
Can the CC variable please be taken into account in all makefiles?
--
Ticket URL: <http://madwifi.org/ticket/1975>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets