Summary: | games/tome4: fix build on GCC architectures | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Piotr Kubaj <pkubaj> | ||||
Component: | Individual Port(s) | Assignee: | Nikolai Lifanov <lifanov> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | lifanov | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(lifanov) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Approved as mentor pending maintainer review. A commit references this bug: Author: pkubaj Date: Mon Dec 9 12:24:36 UTC 2019 New revision: 519604 URL: https://svnweb.freebsd.org/changeset/ports/519604 Log: games/tome4: fix build on GCC architectures Use C++11 compiler: ==== Building te4-wfc (release) ==== lua_wfc.cpp g++ -O2 -pipe -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict -aliasing -std=gnu89 -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I../src/bzip2 -I../src/lua -I../../../../../../../../include -pthread -O3 -std=c++11 -o "../obj/Release/te4-wfc/lua_wfc.o" -MF ../obj/Release/te4-wfc/lua_wfc.d -c "../src/wfc/lua_wfc.cpp" cc1plus: warning: command line option "-std=gnu89" is valid for C/ObjC but not for C++ cc1plus: error: unrecognized command line option "-std=c++11" PR: 242188 Approved by: lifanov (maintainer timeout) Changes: head/games/tome4/Makefile |
Created attachment 209383 [details] patch Use C++11 compiler: ==== Building te4-wfc (release) ==== lua_wfc.cpp g++ -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9 -Wl,-rpath=/usr/local/lib/gcc9 -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9 -fno-strict -aliasing -std=gnu89 -MMD -MP -DGLEW_STATIC -DNDEBUG=1 -I../src -I../src/luasocket -I../src/fov -I../src/expat -I../src/lxp -I../src/libtcod_import -I../src/physfs -I../src/zlib -I ../src/bzip2 -I../src/lua -I../../../../../../../../include -pthread -O3 -std=c++11 -o "../obj/Release/te4-wfc/lua_wfc.o" -MF ../obj/Release/te4-wfc/lua_wfc.d -c "../src/wfc/lua_wf c.cpp" cc1plus: warning: command line option "-std=gnu89" is valid for C/ObjC but not for C++ cc1plus: error: unrecognized command line option "-std=c++11"