Ticket #169: no-stack-protector.patch

File no-stack-protector.patch, 1.3 KB (added by basic@…, 14 years ago)

no-stack-protector patch

  • configure

    RCS file: /cvsroot/mplayer/main/configure,v
    retrieving revision 1.943
    diff -u -r1.943 configure
     
    21022102  echores "none"
    21032103fi
    21042104
     2105echocheck "-fno-stack-protector"
     2106cat > $TMPC <<EOF
     2107int main(void) { return 0; }
     2108EOF
     2109if cc_check -fno-stack-protector ; then
     2110  NO_STACK_PROTECTOR="-fno-stack-protector"
     2111  echores "yes"
     2112else
     2113  NO_STACK_PROTECTOR=""
     2114  echores "no"
     2115fi
     2116
    21052117echocheck "-lposix"
    21062118cat > $TMPC <<EOF
    21072119int main(void) { return 0; }
     
    65036515OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC)
    65046516STRIPBINARIES = $_stripbinaries
    65056517HELP_FILE = $_mp_help
     6518NO_STACK_PROTECTOR = $NO_STACK_PROTECTOR
    65066519
    65076520PRG = $_prg
    65086521PRG_MENCODER = $_prg_mencoder
  • loader/Makefile

    RCS file: /cvsroot/mplayer/main/loader/Makefile,v
    retrieving revision 1.16
    diff -u -r1.16 Makefile
     
    3131
    3232distclean: clean
    3333
     34win32.o:
     35        $(CC) $(CFLAGS) $(NO_STACK_PROTECTOR) $(DEFINES) -c win32.c
     36
    3437.c.o:
    3538        $(CC) $(CFLAGS) $(DEFINES) -c $<
    3639