On Tue, 03 Aug 2010 18:40:25 +0300, Eugene Paskevich
<[email protected]> wrote:
On Tue, 03 Aug 2010 17:44:06 +0300, Sven Hoexter <[email protected]>
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
[email protected] | -----------(==* | The Matrix
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]