pombreda / libarchive

Automatically exported from code.google.com/p/libarchive
Other
0 stars 0 forks source link

configure should use pkg-config to find libxml2 #297

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to cross-compile libarchive on Linux using the autotools build system.

What is the expected output? What do you see instead?

Configure uses the "xml2-config" to find libxml2, which picks up the one on the 
build system and passes -I/usr/include/... etc. to the cross-compiler. Instead, 
configure should use pkg-config to find libxml2. If a proper HOST-pkg-config 
wrapper is present, this will make it look for libxml2 in the right place.

On what operating system?
Linux

Please provide any additional information below.

Please use the PKG_ macros and do not call "pkg-config" directly, because 
"pkg-config" will still just pick up packages on the build system.

Original issue reported on code.google.com by ambr...@gmail.com on 15 Jan 2013 at 11:45

GoogleCodeExporter commented 9 years ago
This patch changes configure.ac to use pkg-config instead of libxml2-config. 
With this, libarchive cross-compiles successfully.

Original comment by ambr...@gmail.com on 15 Jan 2013 at 11:46

Attachments: