pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding CFLAGS to a single package build ?
04.07.2025 06:56:14 vom513 <vom513%gmail.com@localhost>:
> I understand how to add on some CFLAGS / CXXFLAGS. For now what I’m trying to do - I hamfistedly put it in /etc/mk.conf.
>
> In general - for a given package - what is the *mk* file to put this in to only affect that single package ?
It's the same file, but you have to define the variable conditionally, like in this template:
.if ${PKGPATH} == devel/libglib2
CFLAGS+= -ftrapv
.endif
Roland
Home |
Main Index |
Thread Index |
Old Index