pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/clang build problem?



On Wed, Nov 11, 2015 at 10:43:41AM +0100, Jan Danielsson wrote:
> On 10/11/15 18:35, Richard PALO wrote:
> [---]
> >> Can you double check if it is using "-g" during the build? It should not
> >> since the build is optimized, but if such flags leak into the build by
> >> other means, it would certainly not be very surprising.
> > 
> > Ah, that's it..I totally forgot about a line I gleaned over a year ago from Joyent
> > and put into my shared mk.conf
> >> BUILDLINK_TRANSFORM+=  opt:-fomit-frame-pointer:-g
> [---]
> 
>    Well I'll be..  I had been debugging an issue with net-snmp and I had
> enabled "-g" in mk.conf.

You can limit such hacks easily to specific packages, e.g. using

    .if !empty(PKGPATH:Mfoo/bar)
    CFLAGS+=	-g
    .endif

Joerg


Home | Main Index | Thread Index | Old Index