On Sun, Dec 19, 2010 at 07:03:44PM +0100, Daniel Stender wrote: > Hi, > > I am building with Debhelper 8 (dh $@) and I have a C source here which builds with several spurious > shlib dependencies detected by dpkg-shlibdeps. I've found that setting LDFLAGS to "--as-needed" > prevents overkill linking. > > Where can I override the the auto build process? Just setting a custom LDFLAGS in debian/rules isn't > given through. Even an override_dh_auto_configure with "./configure LDFLAGS="-Wl,--as-needed" is > overwritten during build process. > > Any pointers? Thanks in advance! When you say that setting the custom LDFLAGS doesn't work, have you actually exported them? :) If you just do LDFLAGS=... or LDFLAGS != ... or LDFLAGS := ..., make(1) will only use the new value *within the Makefile itself*, it won't be passed to child processes such as the configure script. Also, are you aware of the dpkg-buildflags utility available in recent versions of dpkg-dev? :) On both counts, feel free to take a look at recent versions of, say, the timelimit (>= 1.6-1) package. (shameless self-ad, of course, but IMHO it might be useful to you :) G'luck, Peter -- Peter Pentchev firstname.lastname@example.org email@example.com roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 What would this sentence be like if pi were 3?
Description: Digital signature