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:
parent
5d2fbf8187
commit
a216efad1c
2 changed files with 5 additions and 7 deletions
4
.github/workflows/wheels/cibw_before_all.sh
vendored
4
.github/workflows/wheels/cibw_before_all.sh
vendored
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue