[Pkg-lyx-devel] weird build failure

Sven Hoexter sven at timegate.de
Thu Oct 19 11:19:13 UTC 2006


On Thu, Oct 19, 2006 at 01:07:27PM +0200, Sven Hoexter wrote:

> *argh* It's C++ code so this needs to be CXXFLAGS if I'm not completly wrong.

Next try:

Index: debian/rules
===================================================================
--- 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)
+       CXXFLAGS += -ffunction-sections
+endif
+
 CONFIGURE_OPTIONS = \
        --host=$(DEB_HOST_GNU_TYPE) \
        --build=$(DEB_BUILD_GNU_TYPE) \
@@ -66,7 +71,7 @@
                || ln -s /usr/share/misc/config.guess config/config.guess

        test -d build-tree || mkdir build-tree
-       cd build-tree && CFLAGS="$(CFLAGS)" ../configure $(CONFIGURE_OPTIONS)
+       cd build-tree && CXXFLAGS="$(CXXFLAGS)"; CFLAGS="$(CFLAGS)" ../configure $(CONFIGURE_OPTIONS)
        cd build-tree && $(MAKE)
        touch build-stamp


What do you think?

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