aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/xilinx/synth_xilinx.cc
diff options
context:
space:
mode:
authorGraham Edgecombe <gpe@grahamedgecombe.com>2019-11-19 19:46:15 +0000
committerMarcin Koƛcielnicki <mwk@0x04.net>2019-12-20 10:23:18 +0100
commit319cba70d37eafdb8bbd3ddf6a0f9c238d53d0c2 (patch)
tree8767250c5eb5c08c756f20fd058db3dbd9f40e99 /techlibs/xilinx/synth_xilinx.cc
parent2a8cfdebbba39782304afdf91b8fcfbf0bd58eb0 (diff)
downloadyosys-319cba70d37eafdb8bbd3ddf6a0f9c238d53d0c2.tar.gz
yosys-319cba70d37eafdb8bbd3ddf6a0f9c238d53d0c2.tar.bz2
yosys-319cba70d37eafdb8bbd3ddf6a0f9c238d53d0c2.zip
Fix linking with Python 3.8
The behaviour of python-config --libs has changed in Python 3.8. For example, compare the output of it with Python 3.7 and 3.8 on an ArchLinux system: $ python3.7-config --libs -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm $ python3.8-config --libs -lcrypt -lpthread -ldl -lutil -lm -lm $ The lack of -lpython in the latter case causes the linker to fail when attempting to build Yosys against Python 3.8. Passing the new --embed flag to python-config adds -lpython, just like earlier versions of Python: $ python3.8-config --embed --libs -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm $ This commit adds code for automatically detecting support for the --embed flag. If it is supported, it is passed to all python-config invocations. This fixes building against Python 3.8.
Diffstat (limited to 'techlibs/xilinx/synth_xilinx.cc')
0 files changed, 0 insertions, 0 deletions