5.4.2. Integration by Loading the Library at Runtime - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

If your application is already integrated with standard compression libraries supported by AOCL-Compression, AOCL-Compression library can be loaded directly at runtime. Native API set will be called in this scenario.

Follow these steps to integrate AOCL-Compression into your application at Runtime:

On Linux: LD_PRELOAD is an environment variable in Unix-based operating systems, that allows the user to specify one or more shared libraries to be loaded before any other library. This can be used to load AOCL-Compression library before standard compression libraries that the application would load otherwise at runtime. Use LD_PRELOAD as follows when launching the application:

LD_PRELOAD="path/to/aocl_compression.so" your_application_executable