我要评分
获取效率
正确性
完整性
易理解

Command Reference for Compiling Configuration Scripts

  • To change the installation path and the default database directory:
    1
    $ ../configure --prefix=<your-installation-dir> --localstatedir=<your-var-dir> --sysconfdir=<your-default-db-dir>
    
  • To use shared libraries (building and linking to static libraries by default):
    1
    $ ../configure --enable-shared
    
  • To specify a compiler for the compilation (by default, the default compiler in the environment variables is used for the compilation):
    1
    $ ../configure CC=gcc-4.7.3
    
  • To use the Clang compiler:
    1
    $ ../configure CC=clang
    
  • To provide a special flag for the compiler:
    1
    $ ../configure CFLAGS="-g -O2 -mtune=tsv110"
    
  • To enable the debugging option and address sanitization for OVS software development:
    1
    $ ../configure CFLAGS="-g -O2 -fsanitize=address -fno-omit-frame-pointer -fno-common"
    
  • To compile the Linux kernel module and run the kernel-based switch, add the --with-linux option path:
    1
    $ ../configure --with-linux=/lib/modules/$(uname -r)/build
    

For more compilation options, run configure --help or refer to the Open vSwitch official guide at https://docs.openvswitch.org/en/latest/intro/install/general/.