Modify ↓
Opened at 2006-06-26T15:12:55Z
Closed at 2007-10-10T22:46:12Z
#171 closed defect (fixed)
[PATCH] Environment variable CFLAGS isn't honored
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | BitlBee | Version: | 1.0.3 |
| Keywords: | Cc: | ||
| IRC client+version: | Client-independent | Operating System: | Linux |
| OS version/distro: |
Description
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
else
- echo 'CFLAGS=-O3' >> Makefile.settings
+ if [ -n "$CFLAGS" ]; then
+ echo CFLAGS="$CFLAGS" >> Makefile.settings
+ else
+ echo CFLAGS="-O3" >> Makefile.settings
+ fi
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
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
