Skip to content
Advertisement

Find CFLAGS and LDFLAGS equivalent in linux

I’m trying to figure out what is the equivalent paths of these in Linux.

I downloaded the openssl package sudo apt-get install libssl-dev

JavaScript

Advertisement

Answer

Assuming you want to find flags needed to build using that installed package, then pkg-config:

JavaScript

So you don’t need any special -I nor -L flags, because the includes and libraries are already in the system paths, you only need -l flags.

If that’s not what you want, then you can just query the content of the package and see where the files are:

JavaScript

and do with that information whatever you need.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement