summaryrefslogtreecommitdiff
path: root/app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch')
-rw-r--r--app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch b/app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch
new file mode 100644
index 000000000000..0f7cd1d114ea
--- /dev/null
+++ b/app-emulation/simh/files/simh-3.9.0-respect-FLAGS.patch
@@ -0,0 +1,13 @@
+--- simh-3.9.0/makefile
++++ simh-3.9.0/makefile
+@@ -300,8 +300,8 @@
+ CFLAGS_O = -O0
+ BUILD_FEATURES = - debugging support
+ else
+- CFLAGS_O = -O2
+- LDFLAGS_O =
++ CFLAGS_O ?= -O2
++ LDFLAGS_O ?=
+ GCC_MAJOR_VERSION = $(firstword $(subst ., ,$(GCC_VERSION)))
+ ifneq (3,$(GCC_MAJOR_VERSION))
+ ifeq (,$(GCC_OPTIMIZERS_CMD))