In reference to a message from Dale E Martin, dated Apr 23: > How do I put an arch-specific build flag into a source package? I've > googled a bit, and grepped policy, but I'm not finding the answer. Also, > does anyone know if this is really an hppa issue, or is it a more general > g++ 3.0 issue?
it is a hppa-specific issue that is being actively tackled by gcc upstream maintainers, but unfortunately the fix won't make it into woody. How to do this depends a bit on how your package works, usually something like this works with autoconf based packages. In debian/rules: DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) ifeq ($(DEB_BUILD_ARCH),hppa) CFLAGS="-g -O2 -ffunction-sections" else CFLAGS="-g -O2" endif and then run configure like this: CFLAGS=$(CFLAGS) ./configure --whatever-options-you-need you may need to use CXXFLAGS instead of CFLAGS for C++ packages. iirc, pike7 has the function-sections fix. you can use it as a reference. randolph -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

