[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with bug #143585 - hppa needs -ffunction-sections



On Tuesday 23 Apr 2002 4:20 pm, Dale E Martin wrote:
> 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?

The way I have done it before is to add:

ifeq ($(DEB_BUILD_ARCH),hppa)
        export CC=gcc -fPIC
endif

to debian/rules

Not sure if that is the correct way, but it works. If someone can propose 
something more elegant?


-- 
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: