DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 12th July 2015
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Default CPUFLAGS

How do I pass cpu flags to pkgsrc, say, something like -march=corei7?

Man mk.conf suggests to use "CPUFLAGS", but it's not implemented in pkgsrc:

Code:
$ grep -R CPUFLAGS /usr/pkgsrc/mk/
$
A hack would be to add them to CFLAGS, e.g.

Code:
CFLAGS+=-march=corei7
but some packages mess around with CFLAGS and remove my -march, e.g. xv

Code:
$ grep -R corei7 /tmp/pkgsrc/graphics/xv/work/ 
Binary file /tmp/pkgsrc/graphics/xv/work/.gcc/bin/gcc matches
Binary file /tmp/pkgsrc/graphics/xv/work/.gcc/bin/cc matches
Binary file /tmp/pkgsrc/graphics/xv/work/.gcc/bin/cpp matches
Binary file /tmp/pkgsrc/graphics/xv/work/.gcc/bin/g++ matches
Binary file /tmp/pkgsrc/graphics/xv/work/.gcc/bin/c++ matches
Reply With Quote
 

Tags
cpuflags, optimization, pkgsrc, source

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick