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

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



On Tue, Apr 23, 2002 at 11:20:02AM -0400, Dale E Martin wrote:
> How do I put an arch-specific build flag into a source package?

In debian/rules:

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

ifneq "$(DEB_BUILD_ARCH)" "ia64"
CFLAGS := -O2
endif

Or something. And later pass on your $(CFLAGS) or whatever you name it to
the configure, make or whatever you use.

(The above example taken from xmms which works, so you might want to apt-get
source --diff-only and take a look.)

-- 
     2. That which causes joy or happiness.


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



Reply to: