On Tue, 03 Aug 2010 18:40:25 +0300, Eugene Paskevich <eug...@raptor.kiev.ua> wrote:

On Tue, 03 Aug 2010 17:44:06 +0300, Sven Hoexter <s...@timegate.de> wrote:

I think you can move the LDFLAGS setting out of the override target
and set something like
LDFLAGS += -Wl,-z,defs,--as-needed,--no-undefined
above the %: target and remove the override targets altogether.

Actually it seems that debian/rules could be cut down to:

#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CFLAGS = -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
else
         CFLAGS += -O2
endif

LDFLAGS = -Wl,-z,defs,--as-needed,--no-undefined

%:
         dh $@


Could you please confirm this is OK?
I didn't notice any problems myself with this debian/rules.

Or even to this:

#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

LDFLAGS += -Wl,-z,defs,--as-needed,--no-undefined

%:
        dh $@


For as far as I can see, DEB_BUILD_OPTIONS are respected even w/o debian/rules support.

Thank you for the tip, Sven!

--
Eugene Paskevich             |   *==)-----------   |     Plug me into
eug...@raptor.kiev.ua        |   -----------(==*   |      The Matrix


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/op.vgvc4m2m2m4...@kite.raptor.kiev.ua

Reply via email to