NPTH-CONFIG(1)

πŸ“¦
version 1.8 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

πŸ’– 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 installed npth(3) library. this one is nPth-specific, iykyk.
  • --api-version β€” prints the API version of the installed npth(3) library.
  • --host β€” prints the host triplet.
  • --libs β€” prints the library flags (that's the "-l" kind) you need to link your application with the npth(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 your npth(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 πŸ¦‹βœ¨πŸŽ€