Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv24750/scripts
Modified Files:
alsa-driver
Log Message:
don't compile modules with stack smashing protector
Index: alsa-driver
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/alsa-driver,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- alsa-driver 7 Nov 2003 18:39:43 -0000 1.4
+++ alsa-driver 11 Nov 2003 00:17:54 -0000 1.5
@@ -20,15 +20,21 @@
source $MYDIR/settings
source $MYDIR/functions
-KERNELDIR=$(find_src_dir linux)
+KERNELDIR=$(find_src_dir linux)
MYNAME=ALSA-DRIVER
case $1 in
build )
if [ "$CONFIG_ALSA" = "y" ]; then
- ./configure --with-isa-pnp=yes --with-oss=yes --with-sequencer=yes --with-cards=all --with-kernel=$KERNELDIR --with-moddir=$CDDIR/lib/modules/$KERNELVERSION/misc --sysconfdir=$ETCDIR || exit 1
- make $PMAKE || exit 1
+ ./configure --with-isa-pnp=yes --with-oss=yes --with-sequencer=yes --with-cards=all --with-kernel=$KERNELDIR \
+ --with-moddir=$CDDIR/lib/modules/$KERNELVERSION/misc --sysconfdir=$ETCDIR || exit 1
+ FLAGS=""
+ if [ "$CONFIG_GCC_STACK_PROTECTOR" = "y" ]; then
+ FLAGS="CFLAGS_KERNEL=-fno-stack-protector"
+ fi
+
+ make $PMAKE $FLAGS || exit 1
strip_debug
fi
;;
|