| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# Please update the paths below in accordance with your setup |
| 4 |
# if you do not have clang 8.0+, gcc 9.1+, libva and libc++ installed somewhere in |
| 5 |
# the system directories like /usr/share |
| 6 |
|
| 7 |
# ACLOCAL and PKG_CONFIG should point to the directories with libva and dependent files installed |
| 8 |
#export ACLOCAL_PATH="/usr/intel/pkgs/pkgconfig/0.23-64/share/aclocal" |
| 9 |
#export PKG_CONFIG_PATH="" |
| 10 |
|
| 11 |
export CC=/usr/intel/bin/clang |
| 12 |
export CXX=/usr/intel/bin/clang++ |
| 13 |
export CFLAGS="-m32 -fcoroutines-ts -stdlib=libc++ -Wno-register" |
| 14 |
export CXXFLAGS="-m32 -fcoroutines-ts -stdlib=libc++ -Wno-register" |
| 15 |
|
| 16 |
# LDFLAGS should include -Wl,-L/path/to/libc++ and -Wl,-L/path/to/libgcc |
| 17 |
# if clang's libc++ and libgcc are not installed |
| 18 |
# in the system directories |
| 19 |
export LDFLAGS="-lc++abi" |
| 20 |
|
| 21 |
# COMPILER_PATH should include the path to gcc 9.1+ installation directory |
| 22 |
# if for some reason clang picks up wrong GCC toolchain path into its |
| 23 |
# --gcc-toolchain option |
| 24 |
#export COMPILER_PATH=/usr/intel/pkgs/gcc/9.1.0 |
| 25 |
|
| 26 |
# LIBRARY_PATH, CPLUS_INCLUDE_PATH and LD_LIBRARY_PATH should include |
| 27 |
# correct paths to the custom libc++ location if it is not installed |
| 28 |
# in your system directories |
| 29 |
#export LIBRARY_PATH="" |
| 30 |
#export CPLUS_INCLUDE_PATH="" |
| 31 |
#export LD_LIBRARY_PATH="" |