GLIB(1)

πŸ“¦ version 1.2.10, in fedora 43, fedora 44

πŸ’… GLIB(1) β€” the manual page, but make it cute

okay bestie, gather round, because we're talking about glib-config from GLib version 1.2.10 and honestly? she's a little legend. 🫢


✨ NAME ✨

glib-config β€” a script that tells you everything about the installed version of GLib. it's giving oracle, it's giving customer service desk for your compiler. πŸ’–


🌸 SYNOPSIS 🌸

glib-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs]
            [--cflags] [LIBRARIES]

literally that's the whole vibe. flags go in, flags come out. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so glib-config is this tool you use to configure stuff β€” specifically, it figures out the compiler and linker flags you need so you can compile and link programs that use GLib. no more guessing, no more crying in the terminal at 2am. 😭

it's also used internally by the .m4 macros for GNU autoconf that ship with GLib. so like, even if you never call her by name, she's in there doing the work. main character energy, honestly. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

glib-config accepts the following options, and yes we're going through all of them, periodt:

  • LIBRARIES β€” GLib has three libraries: glib, gmodule and gthread. if you name one of them, only the stuff appropriate to that library gets printed. so pick your girl and she'll show up for you. πŸ’–
  • --version β€” prints the currently installed version of GLib to standard output. a little "hey, this is who I am" moment. 🌈
  • --libs β€” prints the linker flags you need to link a GLib program. the glue. the connector. iconic. πŸ”₯
  • --cflags β€” prints the compiler flags you need to compile a GLib program. yes queen, tell the compiler what's up. ⭐
  • --prefix=PREFIX β€” if you specify this, PREFIX gets used instead of the installation prefix GLib was built with, when computing the output for the --cflags and --libs options. it's also used for the exec prefix if --exec-prefix was not specified. and listen β€” this one must be specified before any --libs or --cflags options. order matters, bestie, she is NOT flexible about it. πŸ’…
  • --exec-prefix=PREFIX β€” if you specify this, PREFIX gets used instead of the installation exec prefix GLib was built with, when computing the output for the --cflags and --libs options. same rule: must be specified before any --libs or --cflags options. put it first or perish. πŸ’€
real talk: both prefix options are divas about ordering. flags before them = they get ignored and you'll be confused. you've been warned. πŸ™ˆ

🧚 SEE ALSO 🧚

go bother these girls next, they're all in the same friend group:


Copyright Β© 1998 Owen Taylor

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.

so basically: go off, do your thing, just keep the receipts. 🫢


and that's the whole page, bestie! this was GLib version 1.2.10, dated 16 December 1998 β€” a vintage queen serving looks since the nineties. mwah. πŸ’‹βœ¨

πŸ“¦ where this page comes from