File: libxml2.patch

package info (click to toggle)
ramond 0.5-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 264 kB
  • sloc: ansic: 1,418; sh: 82; makefile: 28; perl: 10
file content (28 lines) | stat: -rw-r--r-- 625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Use pkg-config to find libxml2
Author: Hugh McMaster <hugh.mcmaster@outlook.com>
Forwarded: no, upstream dead
Bug-Debian: https://bugs.debian.org/949489
Last-Update: 2022-04-18

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 CC ?= gcc
 RM=/bin/rm
 
+PKG_CONFIG ?= pkg-config
+
 CFLAGS ?= -ggdb
 LDFLAGS ?=
 
@@ -9,8 +11,8 @@
 APR_CFLAGS=`apr-1-config --includes --cppflags --cflags`
 APR_LDFLAGS=`apr-1-config --link-ld --libs `
 
-XML_CFLAGS=`xml2-config --cflags`
-XML_LDFLAGS=`xml2-config --libs`
+XML_CFLAGS=`$(PKG_CONFIG) --cflags libxml-2.0`
+XML_LDFLAGS=`$(PKG_CONFIG) --libs libxml-2.0`
 
 all: ramond