mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
The previous commit removed support for building with clang. Restore support for building with clang without breaking cross-compilation support. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
20 lines
569 B
Plaintext
20 lines
569 B
Plaintext
Building SCST With Clang
|
|
========================
|
|
|
|
Clang is a C compiler that is an alternative for gcc. SCST can be built as
|
|
follows with clang:
|
|
1. Install clang.
|
|
2. Download the Linux kernel source code and also the SCST source code.
|
|
3. Build at least the modules_prepare Linux kernel make target.
|
|
|
|
cd $HOME/software/linux-kernel
|
|
make CC=clang modules_prepare
|
|
|
|
5. Build SCST using any of the supported build methods. An example:
|
|
|
|
export KDIR=$HOME/software/linux-kernel
|
|
export PASS_CC_TO_MAKE=1
|
|
export CC=clang
|
|
cd scst.git
|
|
make rpm
|