Properly build the swig exception file even if the headers are missing
During build if the headers are not installed in the system path, the generated swig exception (.i) file might be empty.
This commit is contained in:
parent
4b41f10db9
commit
9792099fd7
|
@ -15,6 +15,6 @@ echo "
|
|||
;;
|
||||
esac
|
||||
}
|
||||
gcc -x c -c - -aux-info temp.aux < ../include/selinux/selinux.h
|
||||
gcc -x c -c -I../include - -aux-info temp.aux < ../include/selinux/selinux.h
|
||||
for i in `awk '/<stdin>.*extern int/ { print $6 }' temp.aux`; do except $i ; done
|
||||
rm -f -- temp.aux -.o
|
||||
|
|
|
@ -9,6 +9,6 @@ echo "
|
|||
}
|
||||
"
|
||||
}
|
||||
gcc -x c -c - -aux-info temp.aux < ../include/semanage/semanage.h
|
||||
gcc -x c -c -I../include - -aux-info temp.aux < ../include/semanage/semanage.h
|
||||
for i in `awk '/extern int/ { print $6 }' temp.aux`; do except $i ; done
|
||||
rm -f -- temp.aux -.o
|
||||
|
|
Loading…
Reference in New Issue