FreeBSD Bugzilla – Attachment 233893 Details for
Bug 263953
multimedia/nymphcast: fix build on armv7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
multimedia/nymphcast: fix build on armv7
0001-multimedia-nymphcast-fix-build-on-armv7.patch (text/plain), 2.65 KB, created by
Robert Clausecker
on 2022-05-13 14:46:48 UTC
(
hide
)
Description:
multimedia/nymphcast: fix build on armv7
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2022-05-13 14:46:48 UTC
Size:
2.65 KB
patch
obsolete
>From a72070398fb731f56ef57b19d8911158b0268029 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@fuz.su> >Date: Fri, 13 May 2022 04:30:51 +0200 >Subject: [PATCH] multimedia/nymphcast: fix build on armv7 > >The build failed due to an unsupported compiler option >-Wa,-mimplicit-it=thumb. This option is not needed when >building with clang, doubly so when building in ARM mode, >which we do. >--- > ...pt_angelscript_projects_cmake_CMakeLists.txt | 10 ++++++++++ > ...gelscript_angelscript_projects_gnuc_Makefile | 17 +++++++++++++++++ > 2 files changed, 27 insertions(+) > create mode 100644 multimedia/nymphcast/files/patch-angelscript_angelscript_projects_cmake_CMakeLists.txt > create mode 100644 multimedia/nymphcast/files/patch-angelscript_angelscript_projects_gnuc_Makefile > >diff --git a/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_cmake_CMakeLists.txt b/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_cmake_CMakeLists.txt >new file mode 100644 >index 000000000000..3bc3c1339c0d >--- /dev/null >+++ b/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_cmake_CMakeLists.txt >@@ -0,0 +1,10 @@ >+--- angelscript/angelscript/projects/cmake/CMakeLists.txt.orig 2022-05-12 21:14:16 UTC >++++ angelscript/angelscript/projects/cmake/CMakeLists.txt >+@@ -110,7 +110,6 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") >+ enable_language(ASM) >+ if(CMAKE_ASM_COMPILER_WORKS) >+ set(ANGELSCRIPT_SOURCE ${ANGELSCRIPT_SOURCE} ../../source/as_callfunc_arm.cpp ../../source/as_callfunc_arm_gcc.S) >+- set_property(SOURCE ../../source/as_callfunc_arm_gcc.S APPEND PROPERTY COMPILE_FLAGS " -Wa,-mimplicit-it=always") >+ else() >+ message(FATAL ERROR "ARM target requires a working assembler") >+ endif() >diff --git a/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_gnuc_Makefile b/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_gnuc_Makefile >new file mode 100644 >index 000000000000..bc8359c1e348 >--- /dev/null >+++ b/multimedia/nymphcast/files/patch-angelscript_angelscript_projects_gnuc_Makefile >@@ -0,0 +1,17 @@ >+--- angelscript/angelscript/projects/gnuc/Makefile.orig 2022-05-12 21:13:19 UTC >++++ angelscript/angelscript/projects/gnuc/Makefile >+@@ -89,14 +89,8 @@ else >+ CXXFLAGS += $(PLATFORM_FLAGS) >+ endif >+ >+-## Detect if targeting ARM CPU and if so tell assembler to accept implicit IT constructs in thumb mode >+ GCC_ARCH := $(shell $(CXX) -dumpmachine) >+ $(info GCC ARCH: $(GCC_ARCH)) >+-ifneq (,$(findstring arm-,$(GCC_ARCH))) >+- CXXFLAGS += -Wa,-mimplicit-it=thumb >+-else ifneq (,$(findstring armv7-, $(GCC_ARCH))) >+- CXXFLAGS += -Wa,-mimplicit-it=thumb >+-endif >+ >+ ## toolchain >+ AR ?= ar >-- >2.35.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
adridg
)
Actions:
View
|
Diff
Attachments on
bug 263953
: 233893