Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
trigger-rally: eliminate illegal-instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
attuska committed Nov 26, 2018
1 parent f2bdc0d commit 7df46ea
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
1 change: 0 additions & 1 deletion trigger-rally/compile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
cd src

DESTDIR=$UB_INSTALLDIR \
prefix=/usr \
make -f GNUmakefile
5 changes: 1 addition & 4 deletions trigger-rally/install
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh -eux

cd src
ub_install \
prefix=/usr \
bindir=/usr/bin \
docdir=/usr/share/doc/Packages/trigger-rally
ub_install
mv ../data/icon/trigger-64.png ${UB_INSTALLDIR}/usr/share/pixmaps/trigger.png
rm -rf ${UB_INSTALLDIR}/usr/share/games/trigger-rally/icon
28 changes: 28 additions & 0 deletions trigger-rally/patches/gnumakefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff -Nur orig/src/GNUmakefile mod/src/GNUmakefile
--- orig/src/GNUmakefile 2016-11-05 18:27:10.000000000 +0100
+++ mod/src/GNUmakefile 2018-11-26 18:10:35.518548515 +0100
@@ -21,7 +21,7 @@
OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES))
DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES))
WARNINGS ?= -Wall -Wextra -pedantic
-OPTIMS ?= -march=native -mtune=native -Ofast
+OPTIMS ?= -march=native -mtune=native -O2
DMACROS := -DNDEBUG -DUNIX -DPACKAGE_VERSION=\"$(DISTVER)\"
INCDIRS := -I'./include'
CXXFLAGS += -std=c++11 $(WARNINGS) $(OPTIMS)
@@ -32,12 +32,12 @@
INSTALL_DATA := install --mode=0644

# standard GNU directories
-prefix ?= /usr/local
+prefix ?= /usr
exec_prefix ?= $(prefix)
-bindir := $(exec_prefix)/games
+bindir := $(exec_prefix)/bin
datarootdir := $(prefix)/share
datadir := $(datarootdir)/games
-docdir := $(datarootdir)/doc/$(DISTNAME)
+docdir := $(datarootdir)/doc/Packages/$(DISTNAME)

#
# phony targets, whose names aren't names of resulting files

0 comments on commit 7df46ea

Please sign in to comment.