[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#243838: another comment



On Mon, 26 Apr 2004, Leo "Costela" Antunes wrote:

> The CFLAGS being refered are "-g", "-s", "-O2", etc, which configure
> does not understand or respect. Even if it did, it's better from a
> porting point of view to leave the configure and make steps completely
> separated, so I could manage different archs' flags separately, if
> needed or usefull.

Add an extra compiler flag to CFLAGS, rebuild the package and see it
for yourself. Like:

  CFLAGS=-W -Wformat -O2 -Wall
  ...
       ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
       $(MAKE) CFLAGS="$(CFLAGS)"

will yield:

  /usr/bin/make CFLAGS="-W -Wformat -O2 -Wall"
  make[1]: Entering directory `.../knockd-0.2.1-1/knockd-0.2.1'
  gcc -g -O2 -g -Wall -pedantic -fno-exceptions -D_GNU_SOURCE -I.
    -o src/knockd.o -c src/knockd.c

where as:

  CFLAGS=-W -Wformat -O2 -Wall
  ...
       ./configure CFLAGS="$(CFLAGS)" \
       	        --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
       $(MAKE)

will:

  /usr/bin/make
  make[1]: Entering directory `.../knockd-0.2.1-1/knockd-0.2.1'
  gcc -W -Wformat -O2 -Wall -g -Wall -pedantic -fno-exceptions
    -D_GNU_SOURCE -I. -o src/knockd.o -c src/knockd.c



Cheers,
Cristian



Reply to: