A pkg-config file is provided for AOCL-ScaLAPACK on Linux. You can use the following command to get the required flags for compiling and linking with AOCL-ScaLAPACK:
$ pkg-config --cflags --libs --static scalapack
Note: The pkg-config file depends on AOCL-LAPACK, AOCL-Utils and AOCL-BLAS libraries. Ensure that the pkg-config files for these libraries are available in the PKG_CONFIG_PATH environment variable.