openbsd-ports/lang/erlang/patches/patch-erts_emulator_Makefile_in
2012-09-10 20:35:19 +00:00

27 lines
911 B
Plaintext

$OpenBSD: patch-erts_emulator_Makefile_in,v 1.11 2012/09/10 20:35:19 jasper Exp $
--- erts/emulator/Makefile.in.orig Mon Sep 3 11:58:05 2012
+++ erts/emulator/Makefile.in Mon Sep 10 08:55:32 2012
@@ -223,13 +223,7 @@ ifeq (@EMU_LOCK_CHECKING@,yes)
NO_INLINE_FUNCTIONS=true
endif
-ifneq ($(filter tile-%,$(TARGET)), )
-# -O2 generally produces faster for tile-cc, because the code is smaller.
-# Since tile-cc looks like gcc, we need to override the normal gcc -O3 setting.
OPT_LEVEL = -O2
-else
-OPT_LEVEL = -O3
-endif
ifeq ($(GCC),yes)
ifeq ($(NO_INLINE_FUNCTIONS),true)
@@ -643,7 +637,7 @@ $(OBJDIR)/beam_emu.o: beam/beam_emu.c
endif
$(OBJDIR)/%.o: beam/%.c
- $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
+ $(CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@
$(OBJDIR)/%.o: $(TARGET)/%.c
$(CC) $(CFLAGS) $(INCLUDES) -Idrivers/common -c $< -o $@