NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Custom pet projects compiling for NetBSD n00bs
On Fri, Jan 08, 2021 at 08:48:42AM -0500, Greg Troxel wrote:
> Another piece of the puzzle is pkg-config, implemented in pkgsrc as
> pkgconf, which allows querying the needed flags.
>
> $ pkg-config --cflags libpng
> -I/usr/pkg/include/libpng16
> $ pkg-config --libs libpng
> -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpng16 -lz
You should definitely use pkg-config to set the flags required for
dependencies if you want people packaging your software to be happy,
btw.
Home |
Main Index |
Thread Index |
Old Index