PTH-CONFIG(1)

πŸ’– PTH-CONFIG(1) β€” the GNU Portable Threads build-bestie πŸ’–

okay so bestie, welcome to pth-config, a lil' helper from the GNU Portable Threads fam, chilling in section 1 of the manual. she's tiny, she's useful, she's literally just here to make your life easier. 🫢


✨ VERSION ✨

GNU Pth 2.0.7 β€” dated 08-Jun-2006. vintage! iconic! πŸ’…


🌸 SYNOPSIS 🌸

pth-config [--help] [--version] [--all] [--prefix] [--exec-prefix]
[--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
[--cflags] [--ldflags] [--libs]

πŸ¦‹ DESCRIPTION πŸ¦‹

so pth-config is this adorable little helper utility πŸ’– whose whole job is making it easy to configure and build applications based on the pth(3) library. that's it. that's the girl's purpose.

what she actually does: you ask her questions, and she tells you the C compiler and linker flags you need so your app compiles and links correctly against pth(3). no cap. she's giving "personal assistant who only speaks in flags." πŸ‘‘


πŸ’… OPTIONS πŸ’…

pth-config accepts the following options:

  • --help β€” prints the short usage information. your girl is being helpful, obviously. πŸ™ˆ
  • --version β€” prints the version number and date of the installed pth(3) library. receipts! πŸ“…
  • --all β€” forces the output of all flags, that is, including extra flags which are not Pth specific. the full unhinged dump, basically. ✨
  • --prefix β€” prints the installation prefix of architecture independent files.
  • --exec-prefix β€” prints the installation prefix of architecture dependent files.
  • --bindir β€” prints the installation directory of binaries.
  • --libdir β€” prints the installation directory of libraries.
  • --includedir β€” prints the installation directory of include headers.
  • --mandir β€” prints the installation directory of manual pages. (hi, that's this one πŸŽ€)
  • --datadir β€” prints the installation directory of shared data.
  • --acdir β€” prints the installation directory of autoconf data.
  • --cflags β€” prints the C compiler flags needed to compile the pth(3)-based application. the output is usually added to the "CFLAGS" variable of the application's "Makefile". πŸ› οΈ
  • --ldflags β€” prints the linker flags (-L) needed to link the application with the pth(3) library. the output is usually added to the "LDFLAGS" variable of the application's "Makefile". πŸ”—
  • --libs β€” prints the library flags (-l) needed to link the application with the pth(3) library. the output is usually added to the "LIBS" variable of the application's "Makefile". πŸ“š

πŸ”₯ EXAMPLE πŸ”₯

here's the whole vibe in one Makefile, bestie. look how clean:

CC      = cc
CFLAGS  = -O `pth-config --cflags`
LDFLAGS = `pth-config --ldflags`
LIBS    = -lm `pth-config --libs`

all: foo
foo: foo.o
    $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
foo.o: foo.c
    $(CC) $(CFLAGS) -c foo.c

she ATE. the backticks do the talking and pth-config does the rest. πŸ’…βœ¨


🌈 SEE ALSO 🌈

pth(3), cc(1).

like, go read those too. iykyk. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com

and that's the whole page, bestie!! πŸŽ€ this version was living inside GNU Pth 2.0.7, dated 08-Jun-2006 β€” so like, shoutout to the archives for keeping her safe. mwah. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from