GLIB(1)
π 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,gmoduleandgthread. 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,PREFIXgets used instead of the installation prefix GLib was built with, when computing the output for the--cflagsand--libsoptions. it's also used for the exec prefix if--exec-prefixwas not specified. and listen β this one must be specified before any--libsor--cflagsoptions. order matters, bestie, she is NOT flexible about it. π--exec-prefix=PREFIXβ if you specify this,PREFIXgets used instead of the installation exec prefix GLib was built with, when computing the output for the--cflagsand--libsoptions. same rule: must be specified before any--libsor--cflagsoptions. 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 π
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
- fedora 43: glib-devel 1:1.2.10-76.fc43 Β· LGPL-2.0-or-later
- fedora 43: glib-devel 1:1.2.10-76.fc43 Β· LGPL-2.0-or-later
- fedora 44: glib-devel 1:1.2.10-77.fc44 Β· LGPL-2.0-or-later
- fedora 44: glib-devel 1:1.2.10-77.fc44 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms