|
199
|
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, |