ariovistus / pyd

Interoperability between Python and D
MIT License
157 stars 32 forks source link

[FIX] Compilinng with python38 on posix system. #133

Closed katyukha closed 4 years ago

katyukha commented 4 years ago

Starting from python38 there is not python38m library. See https://docs.python.org/3/whatsnew/3.8.html#build-and-c-api-changes

Before this Pull Request attempt to compile PyD on Ubuntu 20.04 causes following error:

Performing "debug" build using /usr/bin/dmd for x86_64.
darg 0.1.0: target for configuration "library" is up to date.
tinyendian 0.2.0: target for configuration "library" is up to date.
dyaml 0.8.0: target for configuration "library" is up to date.
pyd ~master: target for configuration "python38" is up to date.
semver 0.3.2: target for configuration "library" is up to date.
termcolor-d 0.0.1: target for configuration "library" is up to date.
odoo-packager ~dev: building configuration "executable_py38"...
Linking...
/usr/bin/ld: cannot find -lpython3.8m
collect2: error: ld returned 1 exit status

After this commit it compiles and works find