Memcached doesn’t compile with -O3
Friday, June 20, 2014
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
Posted at 13:23:41 GMT-0700
Category: FreeBSD
-
Recent Posts
- Manually Update Time Zone Data on Android 10 2023 October 31
- Autodictating to self using Whisper to preserve privacy 2023 August 17
- Projecting Qubit Realizations to the Cryptopocalpyse Date 2023 August 04
- AI PSYOPS are changing strategic messaging 2023 July 29
- Convert A Slideshow/Presentation into HTML 5 Video 2023 July 23
- Mobotix Notifier in Python – get desktop messages from your cameras 2023 June 06
- Get a desktop alert when Thunderbird gets constipated 2023 May 29
- The end of a comic era 2023 May 14
- WordPress forward and back navigation I find pleasing 2023 May 07
- عيد مبارك 2023 April 22
- Categories
- Links
- Search
- Archives
- 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