On Tue, 03 Aug 2010 17:44:06 +0300, Sven Hoexter <sven@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.