mirror of
https://github.com/intel/isa-l.git
synced 2025-01-19 04:26:08 +01:00
d32d3f6902
ec_base.h has several variables, which were defined with a global scope. Exactly those global variables caused issues on linking a static compilation of libisal.a to a shared lib. Adding -fPIC to CFLAGS somehow didn't help. As all the variables in ec_base.h are only included and used by a single C file, all of these can be (file) static, which then will also helps the compiler to make further optimizations. And which also solves the issue to link the static libisal to a shared lib. Also make the variables const, as these are constants and must be modified. Change-Id: I2b8141dabc1c7a528401f2778cdbdbed6c93c36b Signed-off-by: Bernd Schubert <bschubert@ddn.com>