Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1975 (new defect)

Opened 13 years ago

Please allow CC override of default compiler

Reported by: Assigned to:
Priority: minor Milestone:
Component: madwifi: makefiles Version: v0.9.4
Keywords: Cc:
Patch is attached: 0 Pending:


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?