#171 closed defect (fixed)

[PATCH] Environment variable CFLAGS isn't honored

Reported by: robert@… Owned by:
Priority: normal Milestone:
Component: BitlBee Version: 1.0.3
Keywords: Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:


BitlBee currently doesn't honor passed CFLAGS, neither in 'CFLAGS="foo" ./configure' nor at 'make CFLAGS="foo"'. Last one will break BitlBee while compiling completely. Following patch resolves the issue (especially for vendors like Fedora, Mandrake etc). Thanks to wilmer and lucumo for figgering out a suitable and working solution.

--- bitlbee-1.0.3/configure             2006-06-24 16:00:43.000000000 +0200
+++ bitlbee-1.0.3/configure.rsc         2006-06-26 16:03:59.000000000 +0200
@@ -111,7 +111,11 @@
        echo 'DEBUG=1' >> Makefile.settings
        echo '#define DEBUG' >> config.h
-       echo 'CFLAGS=-O3' >> Makefile.settings
+       if [ -n "$CFLAGS" ]; then
+               echo CFLAGS="$CFLAGS" >> Makefile.settings
+       else
+               echo CFLAGS="-O3" >> Makefile.settings
+       fi

 echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings

Attachments (0)

Change History (1)

comment:1 Changed at 2007-10-10T22:46:12Z by wilmer

Resolution: fixed
Status: newclosed

Modify Ticket

as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.