Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison lang/pypy311/files/patch-rpython_rlib_clibffi.py @ 201:aa93453cd531
Build PyPy3 for Python implementation 3.11.
BUGS:
- pypy39 not yet deleted.
- Tests are not working yet.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 12 Mar 2025 17:01:42 +0100 |
| parents | lang/pypy310/files/patch-rpython_rlib_clibffi.py@8b567a874360 |
| children |
comparison
equal
deleted
inserted
replaced
| 200:792fb463576a | 201:aa93453cd531 |
|---|---|
| 1 --- rpython/rlib/clibffi.py.orig 2025-02-22 16:54:09 UTC | |
| 2 +++ rpython/rlib/clibffi.py | |
| 3 @@ -77,11 +77,16 @@ if not _WIN32: | |
| 4 library_dirs = platform.library_dirs_for_libffi() | |
| 5 libraries = ['ffi'] | |
| 6 link_files = [] | |
| 7 - for libdir in library_dirs: | |
| 8 - candidate = os.path.join(libdir, "libffi.a") | |
| 9 - if os.path.exists(candidate): | |
| 10 - link_files.append(candidate) | |
| 11 - libraries = [] | |
| 12 + # | |
| 13 + # fag: linking with libffi.a yields an error on FreeBSD because it is | |
| 14 + # not compiled with -fPIC: so link with libffi.so instead. This | |
| 15 + # is also true for previous versions of pypy. | |
| 16 + # | |
| 17 + # for libdir in library_dirs: | |
| 18 + # candidate = os.path.join(libdir, "libffi.a") | |
| 19 + # if os.path.exists(candidate): | |
| 20 + # link_files.append(candidate) | |
| 21 + # libraries = [] | |
| 22 | |
| 23 eci = ExternalCompilationInfo( | |
| 24 pre_include_bits = pre_include_bits, |
