NPTH-CONFIG(1)
π NPTH-CONFIG(1) π
okay bestie, so this is a page from the GNU Portable Threads manual set, and it's literally the lore drop for npth-config. grab a strawberry drink, we're doing this π
β¨ NAME β¨
npth-config β nPth library build utility
π VERSION π
GNU nPth 0.91
π¦ SYNOPSIS π¦
npth-config [--help] [--version] [--all] [--prefix] [--exec-prefix]
[--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]
[--cflags] [--ldflags] [--libs]
πΈ DESCRIPTION πΈ
So npth-config is this tiny helper program that exists purely to make your life easier when you're configuring and building apps that are based on the npth(3) library. no cap, that's its whole job π
The way it works: you ask it stuff, and it tells you the C compiler and linker flags you need to compile and link your app against npth(3) the correct way. it's giving "personal assistant but for your Makefile" energy, and honestly? obsessed π«Ά
β¨ OPTIONS β¨
npth-config accepts the following options:
--threadβ pick which thread module you wanna use, bestie.--prefixβ prints the installation prefix for the architecture independent files.--exec-prefixβ prints the installation prefix for the architecture dependent files. (yes, they're different, and yes, it matters π)--versionβ prints the version number and the date of the installednpth(3)library. this one is nPth-specific, iykyk.--api-versionβ prints the API version of the installednpth(3)library.--hostβ prints the host triplet.--libsβ prints the library flags (that's the"-l"kind) you need to link your application with thenpth(3)library. you'd usually drop this output into the"LIBS"variable of your application's"Makefile".--cflagsβ prints the C compiler flags you need to compile yournpth(3)-based application. same deal β you usually slap this output into the"CFLAGS"variable of your application's"Makefile".
π EXAMPLE π
here's the whole vibe in action, fr fr:
CC = cc
CFLAGS = -O `npth-config --cflags`
LIBS = -lm `npth-config --libs`
all: foo
foo: foo.o
$(CC) -o foo foo.o $(LIBS)
foo.o: foo.c
$(CC) $(CFLAGS) -c foo.c
see how it's just vibing inside backticks inside your Makefile? iconic. it ate. periodt π₯
π SEE ALSO π
npth(3), cc(1).
π AUTHOR π
Ralf S. Engelschall rse@engelschall.com www.engelschall.com
Milan Bartos mbartos@redhat.com
and that's the whole page, bestie!! this one dropped on 08-Jun-2006, and it's from the GNU nPth 2.0.7 era β the version of the library itself is GNU nPth 0.91, which is a whole separate thing, don't get it twisted π anyway slay, go build something cute π¦β¨π
π¦ where this page comes from
- centos-stream 10: npth-devel 1.6-21.el10 Β· LGPL-2.1-or-later
- centos-stream 9: npth-devel 1.6-8.el9 Β· LGPLv2+
- centos-stream 9: npth-devel 1.6-8.el9 Β· LGPLv2+
- fedora 43: npth-devel 1.8-3.fc43 Β· LGPL-2.1-or-later
- fedora 43: npth-devel 1.8-3.fc43 Β· LGPL-2.1-or-later
- fedora 44: npth-devel 1.8-4.fc44 Β· LGPL-2.1-or-later
- fedora 44: npth-devel 1.8-4.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms