[Pkg-lyx-devel] weird build failure
Sven Hoexter
sven at timegate.de
Thu Oct 19 10:57:16 UTC 2006
On Thu, Oct 19, 2006 at 12:03:33PM +0200, Per Olofsson wrote:
> Per Olofsson:
> > The latest upload failed to build on hppa. The log says something
> > about enabling -ffunction-sections. I'm not sure what to do.
>
> It seems to be related to this thread on boost:
>
> http://lists.alioth.debian.org/pipermail/pkg-boost-devel/2005-December/000287.html
>
> As I suspected it appears to be a bug in gcc or some part of the
> toolchain.
I've no access to a hppa machine to test it but if the author of the mail
is right something like this should work:
--- debian/rules (Revision 197)
+++ debian/rules (Arbeitskopie)
@@ -9,6 +9,7 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
CFLAGS = -Wall -g
@@ -18,6 +19,10 @@
CFLAGS += -O2
endif
+ifeq ($(DEB_HOST_ARCH),hppa)
+ CFLAGS += -ffunction-sections
+endif
+
CONFIGURE_OPTIONS = \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
Sven
--
If you won't forgive me the rest of my life
Let me apologize while I'm still alive
I know it's time to face all of my past mistakes
[Less than Jake - Rest Of My Life]
More information about the Pkg-lyx-devel
mailing list