Re: help with bug #143585 - hppa needs -ffunction-sections
> 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.
> 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, and everyone else who answered - thanks! This approximates what
I was thinking but helps me with the details. I appreciate the help!
Take care,
Dale
--
Dale E. Martin, Clifton Labs, Inc.
Senior Computer Engineer
dmartin@cliftonlabs.com
http://www.cliftonlabs.com
pgp key available
--
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: