48 Commits

Author SHA1 Message Date
sthen
f74b6c2d62 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:44:34 +00:00
tj
1367168f53 switch some master_sites and homepage lines to https. ok sthen 2019-07-10 15:25:02 +00:00
naddy
f26293b206 Also check for assembler support for PC-related relocations on i386.
This removes accidentally retained text relocations and fixes
building with lld.
ok sthen@
2018-11-02 18:27:16 +00:00
sthen
86e56414df unbreak asm on arm, probably following clang update; patch from freebsd:
fstmfdd -> vstmdb, fldmiad -> vldmia, fstmiadeq -> vstmiaeq, fldmiadgt -> vldmiagt

ok jasper
2018-04-14 13:02:59 +00:00
jca
2343f34251 No need to link against libpthread any more
The pthread_mutex_* functions are now in libc, so revert the workaround.
Bulk build and ok ajacoutot@, ok jasper@ (maintainer)
2018-01-31 17:58:38 +00:00
bcallah
4a7d643c7c Fix libffi on arm when building with clang. Patches come from upstream and
FreeBSD. Idea to tweak the configure script and WANTLIB changes from jca@.
Thanks to phessler@ for getting the gears moving on this.
ok jca@ jasper@ (MAINTAINER), makes sense to jsg@
2018-01-22 06:28:00 +00:00
jca
680fcb688d Stop using RWX memory for closures.
This switches libffi to the use of two different mappings per closure,
one with RW access, the other with RX access.  Even if not perfect it is
already an improvement.  Soon RWX memory will be unavailable by default,
so fixing libffi means that we don't have to tweak an unknown percentage
of the 565 ports that link against it...

Initial diff from sthen@ who also did most of the tests.
ok sthen@ jasper@ (maintainer)
2016-05-26 20:48:50 +00:00
sthen
b7859462c1 sync WANTLIB; needs pthread, and there are certainly some problems if it's
not updated in-sync with the recent libpthread.so changes.
2016-03-23 22:50:29 +00:00
naddy
c253f424ca garbage collect CONFIGURE_SHARED 2016-03-11 19:59:11 +00:00
jasper
eb3d176d96 Always link with -pthread for libffi, it depends on libpthread but didn't
propagate it.

originally spotted by Karel Gardas via jca@
tested in a bulk by and OK aja@
2016-01-28 08:40:46 +00:00
landry
723854e2de Add a naive patch fixing libffi build on alpha. Testing whether it actually
works or kills your puppy is left as an exercise to the reader.
2015-10-31 10:24:52 +00:00
jasper
bce81dec20 - update to libffi-3.2.1
(bulk) testing/ok aja@, additional testing by tobiasu@
2015-09-29 07:45:33 +00:00
jasper
74e746af01 remove bogus comment from patch which is no longer true 2015-07-15 17:06:48 +00:00
dcoppa
42b4f2ecf1 Fix paths in libffi.pc.in
(upstream git commit ad0d1d239afc7ad09203847793dcc020856d1035)

This unbreaks lua-lgi runtime

with jasper@ and Lauri Tirkkonen
2015-04-24 13:48:27 +00:00
jasper
5e4b7d02f8 update to libffi-3.1 (not quite the newest, but better than what we currently have)
tested with gnome3 (heavily reliant on ffi/javascript/goi) for the better part of a year
2015-04-06 12:11:39 +00:00
naddy
2382144b92 fold lib-only PFRAG.shared into PLIST, regen PLIST, and bump 2015-03-16 18:07:34 +00:00
jasper
eebdccbea9 - update to libffi-3.0.13 (an update to 3.1 will be worked on shortly)
- sync homepage

tested by many on nearly every supported architecture, thanks!

feedback/ok miod@
2014-06-04 17:40:27 +00:00
jasper
ef36312939 add missing dependency on libtool; spotted by sthen@ 2014-04-20 16:44:30 +00:00
jasper
fb03e32fdf patch and do the auto-dance to make merging with newer versions a lot easier. 2014-04-20 16:09:47 +00:00
fgsch
0539e80e0f Simplify. No functional change. 2013-10-23 17:46:01 +00:00
fgsch
dad43e63c5 Fix libffi on arm. Change the code to work with our current ABI (APCS) as
much as possible until we switch to ATPCS or AAPCS.
jasper@ (maintainer) ok.
2013-10-23 10:32:01 +00:00
miod
b3d2c78490 The m68k fixes were not good enough to work correctly for closures around
functions returning structs of 5 to 15 bytes, inclusive; making me wonder
what I had actually tested. Now all the testcase passes, for real. Noticed
while working on cleaning these changes to push them upstream.
Bump revision.
2013-07-15 19:01:56 +00:00
miod
e164118f4e Update the VAX code to work in the ELF world: add register prefixes, and switch
to the reentrant struct return convention (non-pcc).
Bump revision.
2013-07-14 15:29:32 +00:00
jasper
2dfe427d66 re-instate a small part of this previously removed patch; enough to get
libffi building again on arm.

tested by patrick@
2013-05-07 20:41:23 +00:00
jasper
2082e94e14 regen; no functional change 2013-05-07 20:04:18 +00:00
miod
9c81cdc52f Fix m68k support (Linux/ELF uses a slightly different calling convention than
SysV/m68k, which NetBSD and OpenBSD follow).

Add m88k/ELF support.

Add vax/a.out support.

All tests from the libffi.call dejagnu testsuite pass on these three platforms.

ok jasper@
2013-05-01 10:11:54 +00:00
kettenis
190b79fcd0 Fix stack alignment on i386.
ok jasper@, ajacoutot@
2013-04-01 11:53:52 +00:00
jasper
791f5dabdf - fix an implicit declaration 2013-03-21 16:22:51 +00:00
jasper
a5fac2184e - remove patch for arm that dealt with lack of UNWIND support in our 2.15 linker.
a full update of libffi is in the works as well, so remove the comment from Makefile.
2013-03-21 15:52:08 +00:00
ajacoutot
58f1a6f9f6 USE_LIBTOOL=Yes is the default now. 2013-03-21 08:45:11 +00:00
espie
bcf3856632 PERMIT_* / REGRESS->TEST sweep 2013-03-11 10:50:00 +00:00
miod
db9eab8ba7 Add m68k to the NOT_FOR_ARCHS list, needs significant work to build. 2012-09-01 18:15:06 +00:00
naddy
1663a22640 no need for groff 2012-08-05 00:16:50 +00:00
jasper
6ec320d6c9 add a reminder comment 2012-04-05 16:11:01 +00:00
espie
5855efb734 move depends to new style 2010-11-15 19:45:56 +00:00
espie
5c08d95027 USE_GROFF=Yes 2010-10-18 17:47:50 +00:00
jasper
7363106a31 - missed this diff in previous commit, fixes build on mips64 2010-09-22 22:24:56 +00:00
jasper
56c4dcb339 - update libffi to 3.0.9
- remove unneeded patch
2010-09-19 20:19:15 +00:00
jasper
de46d01df2 - enable libffi on mips64(el)
ok espie@ phessler@

ports is unlocked for a while only for those who have been informed.
if I DID NOT MAIL YOU, DO NOT COMMIT!
2010-02-23 19:08:55 +00:00
jasper
fcaeef2071 - extend archtecture tests for mips64el
ok naddy@
2010-02-09 12:18:45 +00:00
espie
e5cb9e6e91 tsk, tsk. People still don't remember that updates happen. 2009-12-12 16:39:00 +00:00
jasper
70e8508886 - enable libffi on hppa
tested by landry@, thanks!
2009-10-23 15:39:51 +00:00
jasper
d6c8b944d5 - resolve the conflict with gcj 2009-10-10 22:48:54 +00:00
jasper
225bd501b0 - add a note that libffi will most likely never work on vax...
- fix license marker
2009-10-10 18:18:14 +00:00
jasper
0c82bca246 - add short blurb 2009-10-05 20:50:07 +00:00
jasper
a24b18c60e - take maintainership of libffi, and drop it of two others. any takers? 2009-09-25 15:59:15 +00:00
sthen
7ac194ac29 zap spurious commas in NOT_FOR_ARCHS 2009-09-25 14:33:05 +00:00
jasper
9bf295a421 import libffi 3.0.8
FFI stands for Foreign Function Interface. A foreign function interface
is the popular name for the interface that allows code written in one
language to call code written in another language. The libffi library
really only provides the lowest, machine dependent layer of a fully
featured foreign function interface. A layer must exist above libffi
that handles type conversions for values passed between the two
languages.

successfully tested on seven arches by me. other arches are disabled for now as
they need more work (mips64) or haven't been tested yet.
2009-09-23 20:55:46 +00:00