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:
Laurent Bigonville 2013-05-20 20:18:45 +02:00 committed by Stephen Smalley
parent 4b41f10db9
commit 9792099fd7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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