git: 8eb629390305 - main - games/irrlamb: fix build on non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Dec 2021 22:32:39 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8eb629390305a48f9e5e3b9906dfc569066da31e commit 8eb629390305a48f9e5e3b9906dfc569066da31e Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-12-23 22:25:50 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-12-23 22:25:50 +0000 games/irrlamb: fix build on non-x86 /usr/bin/c++ -DGAME_VERSION=\"1.0.1\" -DLUA_USE_LINUX -DPLATFORM=0 -I/usr/local/include -I/usr/local/include/irrlicht -I/wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src -I/wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src/irrlicht/include -I/wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src/OPCODE -I/wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src/libccd -I/wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src/libccd/custom -I/usr/local/include/freetype2 -I/usr/local/include/AL -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wno-deprecated-declarations -pedantic -std=gnu++11 -msse -mfpmath=sse -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DdNODEBUG -s -MD -MT CMakeFiles/irrlamb.dir/src/OPCODE/Ice/IceAABB.cpp.o -MF CMakeFiles/irrlamb.dir/src/OPCODE/Ice/IceAABB.cpp.o.d -o CMakeFiles/irrlamb.dir/src/OPCODE/Ice/IceAABB.cpp.o -c /wrkdirs/usr/ports/games/irrlamb/work/irrlamb-1.0.1/src/OPCODE/Ice/IceAABB.cpp c++: warning: argument unused during compilation: '-msse' [-Wunused-command-line-argument] c++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument] error: unknown FP unit 'sse' ninja: build stopped: subcommand failed. Builds fine on i386. --- games/irrlamb/files/patch-CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/games/irrlamb/files/patch-CMakeLists.txt b/games/irrlamb/files/patch-CMakeLists.txt index 29e6d6a01216..6c895b34188c 100644 --- a/games/irrlamb/files/patch-CMakeLists.txt +++ b/games/irrlamb/files/patch-CMakeLists.txt @@ -27,6 +27,15 @@ # projects project(irrlamb) +@@ -33,7 +28,7 @@ elseif(UNIX) + endif() + + # compiler flags +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated-declarations -pedantic -std=gnu++11 -msse -mfpmath=sse") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated-declarations -pedantic -std=gnu++11") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DdNODEBUG -s") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DdNODEBUG -s") + @@ -44,6 +39,14 @@ include_directories(${X11_Xrandr_INCLUDE_PATH}) include_directories(${X11_X11_INCLUDE_PATH}) include_directories(${X11_xf86vmode_INCLUDE_PATH})