rvaser / spoa

SIMD partial order alignment tool/library
MIT License
158 stars 32 forks source link

Fix compiler error while generating shared library. #38

Closed bagashe closed 4 years ago

bagashe commented 4 years ago
  1. Shared library object now uses position independent code.
  2. make install now installs cpu_features library along with spoa library.

Test Plan:

# Generate Shared Library
cmake /path/to/spoa -DBUILD_SHARED_LIBS=ON -Dspoa_generate_dispatch=ON
make all
sudo make install  # Verfied that libspoa.so and libcpu_features.so are installed in /usr/local/lib/

# Generate Static Library
cmake /path/to/spoa -DBUILD_SHARED_LIBS=OFF -Dspoa_generate_dispatch=ON
make all
sudo make install # Verified that libspoa.a and libcpu_features.a are installed in /usrl/local/lib/