diff --git a/compile_linux.sh b/compile_linux.sh index 06c0d5b6d..91c1b7314 100755 --- a/compile_linux.sh +++ b/compile_linux.sh @@ -9,10 +9,13 @@ # for details please see the ngspice manual, chapt. 32.1. # Declare 'compile_linux.sh' executable and start compiling with # './compile_linux.sh' or './compile_linux.sh d' from the ngspice directory. +# Centos users may need to add -std=c99 to the CFLAGS in the ../configure +# statement. # Options: -# --adms and --enable-adms will install extra HICUM, EKV and MEXTRAM models via the -# adms interface. You need to download and install the *.va files via ng-adms-va.tgz -# Please see the ngspice manual, chapt. 13, for more info on adms. +# --enable-osdi will enable the OSDI interface, which, in conjuction with the +# external OpenVAF Verilig-A compiler, will allow access to advanced compact +# device models writen in Verilog-A. +# Please see the ngspice manual, chapt. 13, for more info on using OSDI/OpenVAF. # CIDER, XSPICE, and OpenMP may be selected at will. # --disable-debug will give O2 optimization (versus O0 for debug) and removes all debugging info. @@ -39,26 +42,18 @@ fi ./autogen.sh if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi -# Alternatively, if compiling sources from git, and want to add adms created devices, -# you may need to uncomment the following two lines (and don't forget to add adms option -# to the ../configure statement): -#./autogen.sh --adms -#if [ $? -ne 0 ]; then echo "./autogen.sh failed"; exit 1 ; fi - echo if test "$1" = "d"; then cd debug if [ $? -ne 0 ]; then echo "cd debug failed"; exit 1 ; fi echo "configuring for 64 bit debug" echo -# You may add --enable-adms to the following command for adding adms generated devices ../configure --with-x --enable-xspice --enable-cider --enable-predictor --enable-osdi --with-readline=yes --enable-openmp CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-m64 -g" else cd release if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi echo "configuring for 64 bit release" echo -# You may add --enable-adms to the following command for adding adms generated devices ../configure --with-x --enable-xspice --enable-cider --enable-predictor --enable-osdi --with-readline=yes --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s" fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi