Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2020 18:16:09 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r538522 - head/graphics/rawtherapee
Message-ID:  <202006111816.05BIG9Tw059961@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Thu Jun 11 18:16:08 2020
New Revision: 538522
URL: https://svnweb.freebsd.org/changeset/ports/538522

Log:
  graphics/rawtherapee: clean up build options for WITH_DEBUG
  
  ...and remove -msse2 from amd64 builds, where GCC enables it by default.

Modified:
  head/graphics/rawtherapee/Makefile

Modified: head/graphics/rawtherapee/Makefile
==============================================================================
--- head/graphics/rawtherapee/Makefile	Thu Jun 11 18:13:22 2020	(r538521)
+++ head/graphics/rawtherapee/Makefile	Thu Jun 11 18:16:08 2020	(r538522)
@@ -130,14 +130,15 @@ LDFLAGS+=	${OPENMP_FLAGS}
 
 .if defined(WITH_DEBUG)
 STRIP=
-CMAKE_BUILD_TYPE=	RelWithDebInfo
-_OPT_FLAGS=	-O1
+CMAKE_BUILD_TYPE=	None	# Arch Linux packaging trick to avoid cmake overriding our flags
+_OPT_FLAGS=	-ggdb3 -Og	# -Og is GCC-specific, use -O1 for clang
 .else
 _OPT_FLAGS=	-O3 -funroll-loops
 .endif
 
-# GCC >= 5.4 includes -fexpensive-optimizations in -O2 already
-.if (${ARCH} == i386) || (${ARCH} == amd64)
+# GCC >= 5.4 includes -fexpensive-optimizations in -O2 already.
+# x86_64/amd64 includes -msse2 by default
+.if ${ARCH} == i386
 # and SSE2 has been around since the years 2000...2003 latest
 _OPT_FLAGS+=	-msse2
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006111816.05BIG9Tw059961>