From 15592281dfcd30122dacef99df0e37ce9df9d3e7 Mon Sep 17 00:00:00 2001 From: Alexandre Moine Date: Sat, 2 Jan 2016 18:44:54 +0100 Subject: [PATCH] Disable gcc optimization for langen --- Makefile.am | 4 +++- configure | 1 + configure.ac | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 45b9dcff..44349cb0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,7 @@ dist_doc_DATA = README.md hyperrogue_SOURCES = hyper.cpp # Some definitions used in graph.cpp -hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" +hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -O2 # Musicdir musicdir=$(datadir)/hyperrogue/music @@ -19,6 +19,8 @@ music/hyperrogue-music.txt: hyperrogue # Langen binary rules noinst_PROGRAMS = langen langen_SOURCES = langen.cpp +# Disable optimization, not needed +langen_CXXFLAGS = -O0 # Generation of language-data.cpp language-data.cpp: langen diff --git a/configure b/configure index 7992d82c..b851c926 100755 --- a/configure +++ b/configure @@ -2863,6 +2863,7 @@ END fi fi +${CXXFLAGS=""} #AC_CONFIG_HEADERS([config.h]) diff --git a/configure.ac b/configure.ac index 05e24481..3a0b1a63 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,10 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_PREREQ([2.69]) +AC_PREREQ([2.68]) AC_INIT([hyperrogue], [7.7h]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +${CXXFLAGS=""} AC_CONFIG_SRCDIR([hyperpoint.cpp]) #AC_CONFIG_HEADERS([config.h])