View Single Post
  #1   (View Single Post)  
Old 27th July 2020
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Unhappy pkgsrc optimization flags ignored

Hello all,

I gain the impression my optimization flags are ignored. This is from my /etc/mk.conf

Code:
CPUFLAGS+=           -march=native DDDDDD1
COPTS+=              -g -O2 -pipe CCCCCC1
I would expect the compilation to fail due to the Ds and Cs. It does not. I also tried setting bogus CFLAGS.

A grep for these flags does not show up in the build directory, either.

Code:
# grep -R DDDDDD1 /var/tmp/pkgsrc/graphics/xli/work/
# grep -R CCCCCC1 /var/tmp/pkgsrc/graphics/xli/work/
I tried graphics/xli as pkgsrc's xli Makefile is quite simple making it unlikely to overwrite mk.conf variables.
Reply With Quote