From 7fda7b8fad5ed47ef36d7d00d8e0652d6c43c268 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 10 Mar 2019 20:43:54 +0100 Subject: gnu: pugixml: Build as shared library. * gnu/packages/patches/pugixml-versioned-libdir.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/xml.scm (pugixml)[source](patches): New field. [arguments]: Instruct the build system to create a shared rather than static library. [native-inputs]: Add PKG-CONFIG. --- gnu/packages/xml.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnu/packages/xml.scm') diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index c80dfb1eac..0ba23bcba4 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -861,14 +861,16 @@ (define-public pugixml (method url-fetch) (uri (string-append "https://github.com/zeux/pugixml/releases/download/v" version "/pugixml-" version ".tar.gz")) + (patches (search-patches "pugixml-versioned-libdir.patch")) (sha256 (base32 "19nv3zhik3djp4blc4vrjwrl8dfhzmal8b21sq7y907nhddx6mni")))) (build-system cmake-build-system) (arguments - `(#:configure-flags '("-DCMAKE_CXX_FLAGS=-shared -fPIC" - "-DCMAKE_C_FLAGS=-shared -fPIC") - #:tests? #f)) ; no tests + `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") + #:tests? #f)) ;no tests + (native-inputs + `(("pkg-config" ,pkg-config))) (home-page "https://pugixml.org") (synopsis "Light-weight, simple and fast XML parser for C++ with XPath support") (description -- cgit v1.2.3