Most of the ports in FreeBSD compile just fine with -O3, and why not use it? Not like compile time is a real constraint and one of the features of FreeBSD is that it is actually optimized for the hardware it runs on, rather than being generic, opaque code.
But memcached don’t play that game. The easy thing to do is modify /etc/make.conf on error, then fix it back after recompiling, but that gets tedious. The following edit to /etc/make.conf automates the process:
.if empty(.CURDIR:M/usr/ports/databases/memcached*) CFLAGS= -O3 -pipe -march=native -mtune=native .endif .if (.CURDIR:M/usr/ports/databases/memcached*) CFLAGS= -O2 -pipe -march=native -mtune=native .endif
- South Lake Tahoe Caldor Fire Timelapse
- Save your email! Avoid the Thunderbird 78 update
- Compile and install Digikam on Ubuntu 20.04 Focal
- Tagging MP3 Files with Puddletag on Linux Mint
- Never put important data on anyone else’s hardware. Ever.
- EZ rsync cheat sheet
- Favicon generation script
- CoreELEC/Kodi on a Cheap S905x Box
- WebP and SVG
- Dealing with Apple Branded HEIF .HEIC files on Linux
- Recent Comments
- Post History
June 2014 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30