Group :: Gráficos
RPM: flam3
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: flam3-3.1.1-alt-009-optimisation_fix.patch
Download
Download
Description: Fix optimisations flags. Should be passed from the environment.
Issue reported: https://github.com/scottdraves/flam3/issues/25
Author: Alexei Kalinin <kaa@altlinux.org>
Last-Update: 2022-11-04
Index: b/Makefile.am
===================================================================
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,8 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
GIT_DEF = -D'GIT_REV="$(shell git describe --tags --dirty)"'
-AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(GIT_DEF)
+CFLAGS ?= -g -O3
+AM_CFLAGS = -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(GIT_DEF)
ACLOCAL_AMFLAGS = -I m4
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@ save_CFLAGS=$CFLAGS
AC_PROG_CC
-CFLAGS=$save_CFLAGS
+CFLAGS?=$save_CFLAGS
AC_PROG_INSTALL