Ticket #43951: patch-Makefile.diff

File patch-Makefile.diff, 1.3 KB (added by freespace+macforge@…, 10 years ago)

Patch to Makefile to remove offending compile time flags

  • Makefile

    old new  
    44#######################################################################
    55
    66# Directory where qiv will be installed under.
    7 PREFIX = /usr/local
     7PREFIX = $(DESTDIR)@PREFIX@
    88
    99# Font to use for statusbar in fullscreen mode
    1010STATUSBAR_FONT = "fixed"
     
    4848CC        = gcc
    4949#CFLAGS    = -O -g -Wall
    5050CFLAGS    = -O2 -Wall \
    51             -fcaller-saves -ffast-math -fno-strength-reduce \
    52             -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
     51            -ffast-math -fno-strength-reduce
    5352#CFLAGS    = -O2 -Wall -fomit-frame-pointer -finline-functions \
    5453#           -fcaller-saves -ffast-math -fno-strength-reduce \
    5554#           -fthread-jumps #-march=pentium #-DSTAT_MACROS_BROKEN
     
    127126
    128127install: $(PROGRAM)
    129128        @echo "Installing QIV..."
     129        mkdir -p $(PREFIX)/bin
    130130        install -s -m 0755 $(PROGRAM) $(PREFIX)/bin
    131         install -m 0644 $(PROGRAM).1 $(PREFIX)/man/man1
    132         $(COMPRESS_PROG) $(PREFIX)/man/man1/$(PROGRAM).1
     131        mkdir -p $(PREFIX)/share/man/man1
     132        install -m 0644 $(PROGRAM).1 $(PREFIX)/share/man/man1
     133        $(COMPRESS_PROG) $(PREFIX)/share/man/man1/$(PROGRAM).1
    133134        @if ./qiv -f ./intro.jpg ; \
    134135        then echo "-- Test Passed --" ; \
    135136        else echo "-- Test Failed --" ; \