FreeBSD Bugzilla – Attachment 188867 Details for
Bug 224372
games/oolite: Unbreak build for armv6 (armv7)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (since 455401 revision)
oolite.diff (text/plain), 7.13 KB, created by
lightside
on 2017-12-16 02:41:42 UTC
(
hide
)
Description:
Proposed patch (since 455401 revision)
Filename:
MIME Type:
Creator:
lightside
Created:
2017-12-16 02:41:42 UTC
Size:
7.13 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 456453) >+++ Makefile (working copy) >@@ -52,12 +52,6 @@ > > OPTIONS_DEFINE= DOCS > >-BROKEN_aarch64= fails to configure: error: These compiler flags are invalid: -O >-BROKEN_armv6= fails to compile: your compiler does not follow the C++ specification for temporary object destruction order >-BROKEN_armv7= fails to compile: your compiler does not follow the C++ specification for temporary object destruction order >- >-.include <bsd.port.pre.mk> >- > post-patch: .SILENT > ${REINPLACE_CMD} -e 's/GNUSTEP_USER_ROOT/GNUSTEP_LOCAL_ROOT/ ; \ > s/sdl-config/$${SDL_CONFIG}/ ; \ >@@ -82,4 +76,4 @@ > ${STAGEDIR}${PREFIX}/share/pixmaps > (cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >Index: files/patch-deps_mozilla_js_src_assembler_jit_ExecutableAllocator.h >=================================================================== >--- files/patch-deps_mozilla_js_src_assembler_jit_ExecutableAllocator.h (nonexistent) >+++ files/patch-deps_mozilla_js_src_assembler_jit_ExecutableAllocator.h (working copy) >@@ -0,0 +1,14 @@ >+--- deps/mozilla/js/src/assembler/jit/ExecutableAllocator.h.orig 2013-11-10 19:58:00 UTC >++++ deps/mozilla/js/src/assembler/jit/ExecutableAllocator.h >+@@ -391,6 +391,11 @@ public: >+ { >+ CacheRangeFlush(code, size, CACHE_SYNC_ALL); >+ } >++#elif WTF_CPU_ARM_TRADITIONAL && WTF_PLATFORM_FREEBSD >++ static void cacheFlush(void* code, size_t size) >++ { >++ __clear_cache(code, reinterpret_cast<char*>(code) + size); >++ } >+ #else >+ #error "The cacheFlush support is missing on this platform." >+ #endif >Index: files/patch-deps_mozilla_js_src_assembler_wtf_Platform.h >=================================================================== >--- files/patch-deps_mozilla_js_src_assembler_wtf_Platform.h (nonexistent) >+++ files/patch-deps_mozilla_js_src_assembler_wtf_Platform.h (working copy) >@@ -0,0 +1,18 @@ >+--- deps/mozilla/js/src/assembler/wtf/Platform.h.orig 2013-11-10 19:58:00 UTC >++++ deps/mozilla/js/src/assembler/wtf/Platform.h >+@@ -213,6 +213,7 @@ >+ #elif defined(__ARM_ARCH_6__) \ >+ || defined(__ARM_ARCH_6J__) \ >+ || defined(__ARM_ARCH_6K__) \ >++ || defined(__ARM_ARCH_6KZ__) \ >+ || defined(__ARM_ARCH_6Z__) \ >+ || defined(__ARM_ARCH_6ZK__) \ >+ || defined(__ARM_ARCH_6T2__) \ >+@@ -243,6 +244,7 @@ >+ >+ #elif defined(__ARM_ARCH_6J__) \ >+ || defined(__ARM_ARCH_6K__) \ >++ || defined(__ARM_ARCH_6KZ__) \ >+ || defined(__ARM_ARCH_6Z__) \ >+ || defined(__ARM_ARCH_6ZK__) \ >+ || defined(__ARM_ARCH_6M__) >Index: files/patch-deps_mozilla_js_src_configure >=================================================================== >--- files/patch-deps_mozilla_js_src_configure (revision 456453) >+++ files/patch-deps_mozilla_js_src_configure (working copy) >@@ -1,6 +1,6 @@ >---- deps/mozilla/js/src/configure.orig 2014-06-30 08:54:39 UTC >+--- deps/mozilla/js/src/configure.orig 2013-11-10 19:58:00 UTC > +++ deps/mozilla/js/src/configure >-@@ -9547,7 +9547,8 @@ >+@@ -9547,7 +9547,8 @@ fi > > echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6 > if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ >@@ -10,3 +10,36 @@ > VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h' > WRAP_SYSTEM_INCLUDES=1 > STL_FLAGS='-I$(DIST)/stl_wrappers' >+@@ -13364,6 +13365,9 @@ fi >+ # Individual module options >+ >+ case "$target_cpu" in >++ armv6*) >++ MOZ_ARM_ARCH=armv6 >++ ;; >+ arm*) >+ MOZ_ARM_ARCH=armv7 >+ ;; >+@@ -13438,6 +13442,13 @@ EOF >+ esac >+ else >+ case "$target_cpu" in >++ armv6*) >++ if test "$GNU_CC"; then >++ CFLAGS="$CFLAGS" >++ CXXFLAGS="$CXXFLAGS" >++ ASFLAGS="$ASFLAGS" >++ fi >++ ;; >+ arm*) >+ if test "$GNU_CC"; then >+ CFLAGS="$CFLAGS -march=armv5te -mthumb-interwork -msoft-float" >+@@ -13517,7 +13528,7 @@ rm -f conftest* >+ fi >+ >+ if test -z "$MOZ_OPTIMIZE_FLAGS"; then >+- MOZ_OPTIMIZE_FLAGS="-O" >++ MOZ_OPTIMIZE_FLAGS="-O2" >+ fi >+ >+ # Check whether --enable-optimize or --disable-optimize was given. >Index: files/patch-deps_mozilla_js_src_configure.in >=================================================================== >--- files/patch-deps_mozilla_js_src_configure.in (revision 456453) >+++ files/patch-deps_mozilla_js_src_configure.in (working copy) >@@ -1,6 +1,6 @@ >---- deps/mozilla/js/src/configure.in.orig 2014-06-30 08:54:39 UTC >+--- deps/mozilla/js/src/configure.in.orig 2013-11-10 19:58:00 UTC > +++ deps/mozilla/js/src/configure.in >-@@ -3378,7 +3378,8 @@ >+@@ -3378,7 +3378,8 @@ EOF > rm -f conftest.{c,S} > ]) > if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \ >@@ -10,3 +10,36 @@ > VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h' > WRAP_SYSTEM_INCLUDES=1 > STL_FLAGS='-I$(DIST)/stl_wrappers' >+@@ -4656,6 +4657,9 @@ MOZ_ARG_HEADER(Individual module options >+ >+ dnl Setup default CPU arch for arm target >+ case "$target_cpu" in >++ armv6*) >++ MOZ_ARM_ARCH=armv6 >++ ;; >+ arm*) >+ MOZ_ARM_ARCH=armv7 >+ ;; >+@@ -4716,6 +4720,13 @@ elif test "$MOZ_ARM_ARCH" = "armv7"; the >+ esac >+ else >+ case "$target_cpu" in >++ armv6*) >++ if test "$GNU_CC"; then >++ CFLAGS="$CFLAGS" >++ CXXFLAGS="$CXXFLAGS" >++ ASFLAGS="$ASFLAGS" >++ fi >++ ;; >+ arm*) >+ if test "$GNU_CC"; then >+ CFLAGS="$CFLAGS -march=armv5te -mthumb-interwork -msoft-float" >+@@ -4788,7 +4799,7 @@ dnl ==================================== >+ dnl = Enable code optimization. ON by default. >+ dnl ======================================================== >+ if test -z "$MOZ_OPTIMIZE_FLAGS"; then >+- MOZ_OPTIMIZE_FLAGS="-O" >++ MOZ_OPTIMIZE_FLAGS="-O2" >+ fi >+ >+ MOZ_ARG_ENABLE_STRING(optimize, >Index: files/patch-deps_mozilla_js_src_nanojit_CodeAlloc.cpp >=================================================================== >--- files/patch-deps_mozilla_js_src_nanojit_CodeAlloc.cpp (nonexistent) >+++ files/patch-deps_mozilla_js_src_nanojit_CodeAlloc.cpp (working copy) >@@ -0,0 +1,10 @@ >+--- deps/mozilla/js/src/nanojit/CodeAlloc.cpp.orig 2013-11-10 19:58:01 UTC >++++ deps/mozilla/js/src/nanojit/CodeAlloc.cpp >+@@ -261,7 +261,6 @@ namespace nanojit >+ #endif >+ >+ #if defined(AVMPLUS_UNIX) && defined(NANOJIT_ARM) >+-#include <asm/unistd.h> >+ extern "C" void __clear_cache(char *BEG, char *END); >+ #endif >+ >Index: files/patch-deps_mozilla_js_src_nanojit_njcpudetect.h >=================================================================== >--- files/patch-deps_mozilla_js_src_nanojit_njcpudetect.h (nonexistent) >+++ files/patch-deps_mozilla_js_src_nanojit_njcpudetect.h (working copy) >@@ -0,0 +1,11 @@ >+--- deps/mozilla/js/src/nanojit/njcpudetect.h.orig 2013-11-10 19:58:01 UTC >++++ deps/mozilla/js/src/nanojit/njcpudetect.h >+@@ -77,6 +77,8 @@ >+ #elif defined(__ARM_ARCH_6__) || \ >+ defined(__ARM_ARCH_6J__) || \ >+ defined(__ARM_ARCH_6T2__) || \ >++ defined(__ARM_ARCH_6K__) || \ >++ defined(__ARM_ARCH_6KZ__) || \ >+ defined(__ARM_ARCH_6Z__) || \ >+ defined(__ARM_ARCH_6ZK__) || \ >+ defined(__ARM_ARCH_6M__) || \
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
Actions:
View
|
Diff
Attachments on
bug 224372
:
188867
|
189142
|
189216
|
194191
|
194193