occt-products: master e93b5add

Author Committer Branch Timestamp Parent
ddzama smoskvin master 2022-10-04 14:32:23 master d1e620f0
Changeset 0033155: Regression [0033117] Coding, relocation R_X86_64_PC32 against symbol `TT_RunIns' can not be used.

After emploing intel oneTBB of version 2021.5 on NEXT platforms arises error:

`
*/ld: */libfreetype.a(truetype.o): relocation R_X86_64_PC32 against symbol `TT_RunIns'
can not be used when making a shared object; recompile with -fPIC
*/ld: final link failed: bad value
`

Affected projects: TKPMIVis

Error occures on next platforms: Debian 10, Debian 90, Ubuntu 1604, Ubuntu 1804, Ubuntu 2004.

Proposed solution: linking with shared object of libfreetype, rather than with archive library.
mod - adm/cmake/freetype.cmake Diff File