xml2-config(1)

πŸ“¦
version 2.15.4 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xml2-config β€” bestie's guide to the lil script that knows where libxml2 lives πŸ’–

okay so before we even start: this is the xml2-config manual page, section 1, and it's been sitting here at version 1.2.0 this whole time. we're folding that in up top like a hair clip, and the whole thing is signed off at the bottom, mwah. πŸ’…


✨ NAME ✨

xml2-config β€” a script to get information about the installed version of libxml2 πŸ¦‹


🌸 SYNOPSIS 🌸

xml2-config [--prefix[=DIR]] [--libs] [--cflags] [--version] [--help]

πŸ’œ DESCRIPTION πŸ’œ

okay so real talk: xml2-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use libxml2. 🫢

that's it. that's the whole job. it's giving "helpful little oracle that tells your compiler where the libxml2 stuff is at." no cap. ✨


πŸŽ€ OPTIONS πŸŽ€

xml2-config accepts the following options:

  • --version β€” prints the currently installed version of libxml2 on the standard output. πŸ¦‹
  • --libs β€” prints the linker flags that are necessary to link a libxml2 program. πŸ’« add --dynamic after --libs to print only shared library linking information.
  • --cflags β€” prints the compiler flags that are necessary to compile a libxml2 program. πŸ”₯
  • --prefix=PREFIX β€” if specified, use PREFIX instead of the installation prefix that libxml2 was built with when computing the output for the --cflags and --libs options.
⚠️ bestie listen, this one matters: this option must be specified before any --libs or --cflags options. order is everything here, it's lowkey the main character rule of this page. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was written by Fredrik Hallenberg <hallon@lysator.liu.se>, for the Debian GNU/linux system (but may be used by others). πŸŽ€


Version 3 April 2022 β€” and that's the whole page, bestie!! 🫢 you just read the xml2-config manpage at version 1.2.0, from that 3 April 2022 date stamp, and honestly? iconic. go compile something. periodt. πŸ’–βœ¨πŸŒˆ