3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-02 20:33:26 +00:00

wheels: force static libffi in build

- only build static libffi
- improve resilience of cibw environment variables
This commit is contained in:
Mohamed Gaber 2026-07-27 14:23:34 +03:00
parent 5d2fbf8187
commit a216efad1c
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions

View file

@ -29,9 +29,7 @@ fi
set -e -x
cd ffi
## Ultimate libyosys.so will be shared, so we need fPIC for the static libraries
CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --prefix=$PWD/pfx
LDFLAGS=-fPIC CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --prefix=$PWD/pfx --enable-static --disable-shared
make clean
make install -j$(getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu)
## Forces static library to be used in all situations
sed -i.bak 's@-L${toolexeclibdir} -lffi@${toolexeclibdir}/libffi.a@' ./pfx/lib/pkgconfig/libffi.pc
)