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

Re: [med-svn] r2775 - trunk/packages/velvet/trunk/debian



Le Fri, Dec 12, 2008 at 12:52:12PM +0100, Mathieu Malaterre a écrit :
> >
> > -DEB_MAKE_BUILD_TARGET = obj velveth velvetg Z_LIB_FILES='' LDFLAGS='-lm -lz'
> > +DEB_MAKE_BUILD_TARGET = obj velveth velvetg Z_LIB_FILES='' LDFLAGS='-lm -lz' OPT='-O2'
> 
> Why in this case DEB_BUILD_OPTIONS is not taken into account to decide
> whether or not to do optimization ?

Hi Mathieu,

Here is Upstream's Makefile:

CC = gcc
CFLAGS = -Wall
DEBUG = -g 
LDFLAGS = -lm
OPT = -O3
(...)
velveth : $(OBJ) 
        $(CC) $(CFLAGS) $(OPT) $(LDFLAGS) -o velveth obj/tightString.o obj/run.o obj/recycleBin.o obj/splay.o obj/splayTable.o obj/readSet.o obj/crc.o $(Z_LIB_FILES)

As you see, $(OPT) comes after $(CFLAGS), and is set to -O3. We therefore have
to override it directly.

Have a nice day,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


Reply to: