Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2018 17:29:40 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478239 - head/games/keeperrl
Message-ID:  <201808271729.w7RHTeSX020792@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Aug 27 17:29:39 2018
New Revision: 478239
URL: https://svnweb.freebsd.org/changeset/ports/478239

Log:
  games/keeperrl: unbreak with GCC
  
  On WITHOUT_CLANG_IS_CC architectures:
  g++7 -x c++-header stdafx.h -MMD -O2 -pipe  -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -isystem /usr/local/include -fno-strict-aliasing -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-mismatched-tags -ftemplate-depth=512 -DDATA_DIR=\"/usr/local/share/keeperrl\" -DRELEASE -I. -I./extern -o obj/stdafx.h.gch
  stdafx.h:16:9: warning: #pragma once in main file
   #pragma once
           ^~~~
  cc1plus: warning: unrecognized command line option '-Wno-mismatched-tags'
  cc1plus: warning: unrecognized command line option '-Wno-tautological-constant-out-of-range-compare'
  /usr/lib/crt1.o: In function `_start1':
  /usr/src/lib/csu/powerpc64/crt1.c:(.text+0x156): undefined reference to `main'
  collect2: error: ld returned 1 exit status
  
  On DragonFly (in-base GCC 5.4.1):
  c++ -MMD -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-mismatched-tags -ftemplate-depth=512 -DDATA_DIR=\"/usr/local/share/keeperrl\" -DRELEASE -I. -I./extern -include-pch obj/stdafx.h.gch -c attr_type.cpp -o obj/attr_type.o
  cc1plus: fatal error: -pch: No such file or directory
  compilation terminated.

Modified:
  head/games/keeperrl/Makefile   (contents, props changed)

Modified: head/games/keeperrl/Makefile
==============================================================================
--- head/games/keeperrl/Makefile	Mon Aug 27 17:29:28 2018	(r478238)
+++ head/games/keeperrl/Makefile	Mon Aug 27 17:29:39 2018	(r478239)
@@ -33,6 +33,8 @@ LIBS+=		-lexecinfo
 LLD_UNSAFE=	yes
 MAKE_ARGS=	DATA_DIR="${DATADIR}" GCC="${CXX}" \
 		LDFLAGS="${LDFLAGS}" RELEASE=true
+# USE_GCC adds -Wl,-rpath=${_GCC_RUNTIME} which breaks -x c++-header
+MAKE_ARGS+=	PCH= PCHINC=
 
 DESKTOP_ENTRIES="KeeperRL" "" "" "keeper" \
 		"Game;Simulation;" false



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