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 installedpth(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 thepth(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 thepth(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 thepth(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 π
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
- debian bookworm: libpth-dev 2.0.7-22
- nixos 26.05: pth 2.0.7
- nixpkgs unstable: pth 2.0.7
- ubuntu jammy: libpth-dev 2.0.7-22
- ubuntu noble: libpth-dev 2.0.7-22.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms