fix: compilation script

This commit is contained in:
DSPOM 2022-06-20 17:26:10 +02:00
parent 663a0c49d7
commit 82f13a4a1d
2 changed files with 4 additions and 4 deletions

View File

@ -52,14 +52,14 @@ if test "$1" = "d"; then
echo "configuring for 64 bit debug" echo "configuring for 64 bit debug"
echo echo
# You may add --enable-adms to the following command for adding adms generated devices # You may add --enable-adms to the following command for adding adms generated devices
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-m64 -g" ../configure --with-x --enable-cider --with-readline=yes --enable-openmp --enable-osdi --enable-predictor CFLAGS="-g -m64 -O0 -Wall -Wno-unused-but-set-variable" LDFLAGS="-m64 -g"
else else
cd release cd release
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi
echo "configuring for 64 bit release" echo "configuring for 64 bit release"
echo echo
# You may add --enable-adms to the following command for adding adms generated devices # You may add --enable-adms to the following command for adding adms generated devices
../configure --with-x --enable-xspice --enable-cider --with-readline=yes --enable-openmp --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s" ../configure --with-x --enable-cider --with-readline=yes --enable-openmp --enable-osdi --enable-predictor --disable-debug CFLAGS="-m64 -O2" LDFLAGS="-m64 -s"
fi fi
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi

View File

@ -542,7 +542,7 @@ static void free_dlerr_msg(char *msg) {
#include "ngspice/osdiitf.h" #include "ngspice/osdiitf.h"
static int add_device(int n, OsdiRegistryEntry *devs) { static int osdi_add_device(int n, OsdiRegistryEntry *devs) {
int i; int i;
int dnum = DEVNUM + n; int dnum = DEVNUM + n;
DEVices = TREALLOC(SPICEdev *, DEVices, dnum); DEVices = TREALLOC(SPICEdev *, DEVices, dnum);
@ -566,7 +566,7 @@ int load_osdi(const char *path) {
return file.num_entries; return file.num_entries;
} }
add_device(file.num_entries, file.entrys); osdi_add_device(file.num_entries, file.entrys);
return 0; return 0;
} }