On Wed, Apr 19, 2017 at 04:44:06PM +0200, Jeremie Courreges-Anglas wrote: > David Hill <[email protected]> writes: > > > This works for me. > > > > Drop the '-fomit-frame-pointer -fforce-addr -fno-omit-frame-pointer > > -fno-force-addr' dance and just drop both sides. > > I have a diff to teach clang to ignore -fno-force-addr (just like it > ignores -fforce-addr). > > > Does -O2 help speed up mutt? > > The port already respects CFLAGS, afaik, so it should be using -O2 by > default. >
Here is a port diff with MYOPTS="". Yes, I verified CFLAGS is respected. Index: Makefile =================================================================== RCS file: /cvs/ports/databases/qdbm/Makefile,v retrieving revision 1.27 diff -u -p -r1.27 Makefile --- Makefile 9 Apr 2016 20:14:48 -0000 1.27 +++ Makefile 20 Apr 2017 02:45:35 -0000 @@ -5,7 +5,7 @@ COMMENT= high performance embedded data DISTNAME= qdbm-1.8.78 CATEGORIES= databases SHARED_LIBS= qdbm 14.14 -REVISION= 0 +REVISION= 1 HOMEPAGE= http://fallabs.com/qdbm/ Index: patches/patch-Makefile_in =================================================================== RCS file: /cvs/ports/databases/qdbm/patches/patch-Makefile_in,v retrieving revision 1.11 diff -u -p -r1.11 patch-Makefile_in --- patches/patch-Makefile_in 8 May 2012 13:04:48 -0000 1.11 +++ patches/patch-Makefile_in 20 Apr 2017 02:45:35 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-Makefile_in,v 1.11 2012/05/08 13:04:48 okan Exp $ ---- Makefile.in.orig Wed Mar 7 03:41:10 2007 -+++ Makefile.in Wed Dec 19 21:39:40 2007 +--- Makefile.in.orig Wed Aug 4 13:14:34 2010 ++++ Makefile.in Sat Apr 15 09:29:04 2017 @@ -24,7 +24,7 @@ LIBREV = @LIBREV@ # Targets MYHEADS = depot.h curia.h relic.h hovel.h cabin.h villa.h vista.h odeum.h @@ -30,7 +30,7 @@ $OpenBSD: patch-Makefile_in,v 1.11 2012/ -D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \ -DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG -CFLAGS = -Wall -pedantic -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr @MYOPTS@ -+CFLAGS += -Wall -pedantic -fPIC -fsigned-char -fomit-frame-pointer -fforce-addr @MYOPTS@ ++CFLAGS += -Wall -pedantic -fPIC -fsigned-char @MYOPTS@ LD = @LD@ LIBS = -lqdbm @LIBS@ -LIBLDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib @LIBS@ Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/databases/qdbm/patches/patch-configure,v retrieving revision 1.3 diff -u -p -r1.3 patch-configure --- patches/patch-configure 8 May 2012 13:04:48 -0000 1.3 +++ patches/patch-configure 20 Apr 2017 02:45:35 -0000 @@ -1,12 +1,12 @@ $OpenBSD: patch-configure,v 1.3 2012/05/08 13:04:48 okan Exp $ ---- configure.orig Wed Aug 4 11:15:20 2010 -+++ configure Wed Apr 25 13:16:33 2012 +--- configure.orig Wed Aug 4 13:15:20 2010 ++++ configure Sat Apr 15 09:31:37 2017 @@ -2774,7 +2774,7 @@ then fi if uname | egrep -i 'BSD' > /dev/null 2>&1 then - MYOPTS="-O1 -fno-omit-frame-pointer -fno-force-addr" -+ MYOPTS="-fno-omit-frame-pointer -fno-force-addr" ++ MYOPTS="" fi if gcc --version | egrep -i '^2\.(8|9)' > /dev/null 2>&1 then
