Mercurial > hgrepos > FreeBSD > ports > PyPy
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lang/pypy311/files/patch-rpython_rlib_clibffi.py Wed Mar 12 17:01:42 2025 +0100 @@ -0,0 +1,24 @@ +--- rpython/rlib/clibffi.py.orig 2025-02-22 16:54:09 UTC ++++ rpython/rlib/clibffi.py +@@ -77,11 +77,16 @@ if not _WIN32: + library_dirs = platform.library_dirs_for_libffi() + libraries = ['ffi'] + link_files = [] +- for libdir in library_dirs: +- candidate = os.path.join(libdir, "libffi.a") +- if os.path.exists(candidate): +- link_files.append(candidate) +- libraries = [] ++ # ++ # fag: linking with libffi.a yields an error on FreeBSD because it is ++ # not compiled with -fPIC: so link with libffi.so instead. This ++ # is also true for previous versions of pypy. ++ # ++ # for libdir in library_dirs: ++ # candidate = os.path.join(libdir, "libffi.a") ++ # if os.path.exists(candidate): ++ # link_files.append(candidate) ++ # libraries = [] + + eci = ExternalCompilationInfo( + pre_include_bits = pre_include_bits,
