Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

I needed the attached patch to get a debug build of the sw module. Does
it look sane and I can push it or do you have a better idea?

The error message I get is included in the commit message.

I put it to sw.mk after getting about the third similar error. :)

Thanks.
From 2da823da67cf5b4a95919759919b1f918902f5f3 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@frugalware.org>
Date: Thu, 13 Jan 2011 01:04:38 +0100
Subject: [PATCH] Fix debug build with system-libxml

Fixes:

$ build debug=t dbglevel=2
...
In file included from 
/home/vmiklos/git/libreoffice/master/clone/writer/sw/source/core/layout/dbg_lay.cxx:125:0:
../inc/frame.hxx:37:29: fatal error: libxml/encoding.h: No such file or directory
compilation terminated.

and similar errors in several subdirs.
---
 sw/inc/sw.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/sw/inc/sw.mk b/sw/inc/sw.mk
index c14f5ab..237e4c9 100644
--- a/sw/inc/sw.mk
+++ b/sw/inc/sw.mk
@@ -38,3 +38,7 @@ CDEFS += -DSW_DLLIMPLEMENTATION
 .ENDIF
 
 VISIBILITY_HIDDEN=TRUE
+
+.IF "$(DBG_LEVEL)">="2"
+CFLAGS += $(LIBXML_CFLAGS)
+.ENDIF
-- 
1.7.3.4

Attachment: pgpELMqYpaUYG.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.