Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2020 14:44:56 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546918 - in head/games/qudos: . files
Message-ID:  <202008291444.07TEiulm092036@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sat Aug 29 14:44:55 2020
New Revision: 546918
URL: https://svnweb.freebsd.org/changeset/ports/546918

Log:
  - Remove -O3 and unsupported -fexpensive-optimizations from CFLAGS
  - Add -fcommon to unbreak the build against Clang 11 and GCC 10
  
  Reported by:	pkg-fallout

Added:
  head/games/qudos/files/patch-Makefile   (contents, props changed)
Modified:
  head/games/qudos/Makefile

Modified: head/games/qudos/Makefile
==============================================================================
--- head/games/qudos/Makefile	Sat Aug 29 14:42:40 2020	(r546917)
+++ head/games/qudos/Makefile	Sat Aug 29 14:44:55 2020	(r546918)
@@ -175,9 +175,6 @@ post-patch:
 # Resolve name collision with jpeg-8
 	@${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
 		${WRKSRC}/src/ref_gl/gl_image.c
-# Remove controversial options unsupported by modern compilers (e.g. Clang)
-	@${REINPLACE_CMD} -e 's|-falign-loops=2 -falign-jumps=2 ||' \
-		${WRKSRC}/src/ref_gl/Makefile ${WRKSRC}/Makefile
 
 post-build:
 .for bin in ${Q2BIN}

Added: head/games/qudos/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/qudos/files/patch-Makefile	Sat Aug 29 14:44:55 2020	(r546918)
@@ -0,0 +1,15 @@
+--- Makefile.orig	2006-06-10 16:31:19 UTC
++++ Makefile
+@@ -109,10 +109,9 @@ else
+   ifeq ($(TYPE),profile)
+ CFLAGS+=	-pg
+   else
+-CFLAGS+=	-O3 -ffast-math -funroll-loops -fomit-frame-pointer \
+-		-fexpensive-optimizations
++CFLAGS+=	-fcommon -ffast-math -funroll-loops -fomit-frame-pointer
+     ifeq ($(ARCH),i386)
+-CFLAGS+=	-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
++CFLAGS+=	-falign-functions=2 \
+ 		-fno-strict-aliasing
+     endif
+   endif



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