summaryrefslogtreecommitdiff
path: root/libxml2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-10 13:13:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 13:14:53 +0000
commit0ffc8c0d70860e1da3b71eb3ffbb30a0d463ddef (patch)
treeb518db34d609b5ea91d376f5e31af7a62abbd9de /libxml2
parent7c21df4eb3a977de368b40906b9808d078349f9e (diff)
build debugging libxml2 with -g
Diffstat (limited to 'libxml2')
-rw-r--r--libxml2/makefile.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/libxml2/makefile.mk b/libxml2/makefile.mk
index 1d125c19e488..78c4c3e6323f 100644
--- a/libxml2/makefile.mk
+++ b/libxml2/makefile.mk
@@ -106,10 +106,19 @@ BUILD_ACTION=nmake
BUILD_DIR=$(CONFIGURE_DIR)
.ENDIF
.ELSE
+
+.IF "$(debug)" != ""
+xml2_CFLAGS+=-g
+.ELSE
+xml2_CFLAGS+=-O
+.ENDIF
+
+xml2_CFLAGS+=$(ARCH_FLAGS)
+
.IF "$(SYSBASE)"!=""
xml2_CFLAGS+=-I$(SYSBASE)$/usr$/include
.IF "$(COMNAME)"=="sunpro5"
-xml2_CFLAGS+=$(ARCH_FLAGS) $(C_RESTRICTIONFLAGS)
+xml2_CFLAGS+=$(C_RESTRICTIONFLAGS)
.ENDIF # "$(COMNAME)"=="sunpro5"
xml2_LDFLAGS+=-L$(SYSBASE)$/usr$/lib
.ENDIF # "$(SYSBASE)"!=""
@@ -121,7 +130,7 @@ CONFIGURE_FLAGS=--disable-shared
.ELSE
CONFIGURE_FLAGS=--disable-static
.ENDIF
-CONFIGURE_FLAGS+=--enable-ipv6=no --without-python --without-zlib --with-sax1=yes ADDCFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)"
+CONFIGURE_FLAGS+=--enable-ipv6=no --without-python --without-zlib --with-sax1=yes CFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)"
BUILD_ACTION=$(GNUMAKE)
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
BUILD_DIR=$(CONFIGURE_DIR)