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

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



Am Freitag, den 12.12.2008, 20:55 +0900 schrieb Charles Plessy:
> 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.

Well, you should still consider DEB_BUILD_OPTIONS and unset OPTS
(OPTS=""), if noopt is set.

Regards, Daniel


Reply to: