FreeBSD Bugzilla – Attachment 144739 Details for
Bug 191909
[patch] devel/libffi: Enable MIPS support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch to configure to enable build support on mips
libffi_mips.txt (text/plain), 3.75 KB, created by
Sean Bruno
on 2014-07-17 04:10:01 UTC
(
hide
)
Description:
patch to configure to enable build support on mips
Filename:
MIME Type:
Creator:
Sean Bruno
Created:
2014-07-17 04:10:01 UTC
Size:
3.75 KB
patch
obsolete
>Index: devel/libffi/Makefile >=================================================================== >--- devel/libffi/Makefile (revision 362116) >+++ devel/libffi/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= libffi > PORTVERSION= 3.0.13 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= devel > MASTER_SITES= SOURCEWARE > MASTER_SITE_SUBDIR= ${PORTNAME} >Index: devel/libffi/files/patch-configure >=================================================================== >--- devel/libffi/files/patch-configure (revision 0) >+++ devel/libffi/files/patch-configure (working copy) >@@ -0,0 +1,13 @@ >+diff --git ./configure.orig ./configure >+index 4b04db7..0d94fbd 100755 >+--- ./configure.orig >++++ ./configure >+@@ -13428,7 +13428,7 @@ case "$host" in >+ mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*) >+ TARGET=MIPS; TARGETDIR=mips >+ ;; >+- mips*-*-linux* | mips*-*-openbsd*) >++ mips*-*-linux* | mips*-*-openbsd* | mips*-*-freebsd*) >+ # Support 128-bit long double for NewABI. >+ HAVE_LONG_DOUBLE='defined(__mips64)' >+ TARGET=MIPS; TARGETDIR=mips > >Property changes on: devel/libffi/files/patch-configure >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: devel/libffi/files/patch-src__mips__ffi.c >=================================================================== >--- devel/libffi/files/patch-src__mips__ffi.c (revision 0) >+++ devel/libffi/files/patch-src__mips__ffi.c (working copy) >@@ -0,0 +1,29 @@ >+diff --git ./src/mips/ffi.c.orig ./src/mips/ffi.c >+index 03121e3..8b7881f 100644 >+--- ./src/mips/ffi.c.orig >++++ ./src/mips/ffi.c >+@@ -38,7 +38,9 @@ >+ #endif >+ >+ #ifndef USE__BUILTIN___CLEAR_CACHE >+-# if defined(__OpenBSD__) >++# if defined(__FreeBSD__) >++# include <machine/sysarch.h> >++# elif defined(__OpenBSD__) >+ # include <mips64/sysarch.h> >+ # else >+ # include <sys/cachectl.h> >+@@ -729,11 +731,13 @@ ffi_prep_closure_loc (ffi_closure *closure, >+ closure->fun = fun; >+ closure->user_data = user_data; >+ >++#if !defined(__FreeBSD__) >+ #ifdef USE__BUILTIN___CLEAR_CACHE >+ __builtin___clear_cache(clear_location, clear_location + FFI_TRAMPOLINE_SIZE); >+ #else >+ cacheflush (clear_location, FFI_TRAMPOLINE_SIZE, ICACHE); >+ #endif >++#endif /* ! __FreeBSD__ */ >+ return FFI_OK; >+ } >+ > >Property changes on: devel/libffi/files/patch-src__mips__ffi.c >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: devel/libffi/files/patch-src__mips__ffitarget.h >=================================================================== >--- devel/libffi/files/patch-src__mips__ffitarget.h (revision 0) >+++ devel/libffi/files/patch-src__mips__ffitarget.h (working copy) >@@ -0,0 +1,13 @@ >+diff --git ./src/mips/ffitarget.h.orig ./src/mips/ffitarget.h >+index 717d659..5a0c2b1 100644 >+--- ./src/mips/ffitarget.h.orig >++++ ./src/mips/ffitarget.h >+@@ -41,7 +41,7 @@ >+ #define _MIPS_SIM_ABI32 1 >+ #define _MIPS_SIM_NABI32 2 >+ #define _MIPS_SIM_ABI64 3 >+-#elif !defined(__OpenBSD__) >++#elif !defined(__OpenBSD__) && !defined(__FreeBSD__) >+ # include <sgidefs.h> >+ #endif >+ > >Property changes on: devel/libffi/files/patch-src__mips__ffitarget.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 Raw
Actions:
View
Attachments on
bug 191909
: 144739