1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00

pkg-config: add page (#4045)

This commit is contained in:
Hojjat 2020-05-14 11:23:32 -06:00 committed by GitHub
parent 20f4b56734
commit 856f93704e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
pages/linux/pkg-config.md Normal file
View file

@ -0,0 +1,16 @@
# pkg-config
> Provide the details of installed libraries for compiling applications.
> More information: <https://www.freedesktop.org/wiki/Software/pkg-config/>.
- Get the list of libraries and their dependencies:
`pkg-config --libs {{library1 library2 ...}}`
- Get the list of libraries, their dependencies, and proper cflags for gcc:
`pkg-config --cflags --libs {{library1 library2 ...}}`
- Compile your code with libgtk-3, libwebkit2gtk-4.0 and all their dependencies:
`c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example`