From 4e78d8a135f6c0ff5bc2995fa118deca4415a626 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 30 Nov 2012 12:56:41 +0000 Subject: [PATCH] Fix build with clang removing -O4 which means LTO for clang Feature safe: yes --- games/tycho/Makefile | 6 +----- games/tycho/files/patch-Makefile | 10 ++++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/games/tycho/Makefile b/games/tycho/Makefile index 4190f913ac6b..f1d6dd78137e 100644 --- a/games/tycho/Makefile +++ b/games/tycho/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: tycho -# Date created: 2008-01-16 -# Whom: alepulver -# +# Created by: Alejandro Pulver # $FreeBSD$ -# PORTNAME= tycho PORTVERSION= 0.1 diff --git a/games/tycho/files/patch-Makefile b/games/tycho/files/patch-Makefile index ca9defdd35d0..e5d2ea454634 100644 --- a/games/tycho/files/patch-Makefile +++ b/games/tycho/files/patch-Makefile @@ -1,12 +1,14 @@ ---- ./Makefile.orig Thu Sep 4 12:44:24 2003 -+++ ./Makefile Wed Jan 16 19:36:13 2008 -@@ -1,7 +1,7 @@ +--- Makefile.orig 2003-09-04 17:44:24.000000000 +0200 ++++ Makefile 2012-11-30 13:54:33.684116105 +0100 +@@ -1,8 +1,8 @@ # $Id: Makefile,v 1.3 2003/09/04 15:44:24 varfar Exp $ -CC = gcc -CFLAGS = ${OPT} ${DBG} -DSIM_STRIP_FLAGS=1 +-OPT = -O4 -fomit-frame-pointer +CC ?= gcc +CFLAGS += ${OPT} ${DBG} -DSIM_STRIP_FLAGS=1 - OPT = -O4 -fomit-frame-pointer ++OPT = -fomit-frame-pointer #DBG = -g -DDEBUG=2 + # Recommended extra options for gcc: