Jump to content

wallacoloo

Dormant
  • Posts

    1
  • Joined

  • Last visited

    Never

wallacoloo's Achievements

0

Reputation

  1. Using gcc-4.7 (which can be installed on Raspbian with "apt-get install gcc-4.7") and removing all references of -flto from the Makefile seems to work with the latest git version of CuraEngine. Here's a patch to apply to the CuraEngine Makefile: --- Makefile.back 2014-07-03 01:13:28.431840101 +0000 +++ Makefile 2014-07-03 01:13:20.222592688 +0000 @@ -12,6 +12,8 @@ CXX ?= g++ CFLAGS += -c -Wall -Wextra -Wold-style-cast -Woverloaded-virtual -std=c++11 -DVERSION=\"$(VERSION)\" -isystem libs +FLTO = #allow for enable/disabling of link-time-optimization. Pass FLTO=-flto to enable. Default is disabled. + ifeq ($(BUILD_TYPE),DEBUG) CFLAGS+=-ggdb -Og -g endif @@ -38,16 +40,16 @@ ifeq ($(OS),Windows_NT) #For windows make it large address aware, which allows the process to use more then 2GB of memory. EXECUTABLE := $(EXECUTABLE).exe - CFLAGS += -march=pentium4 -flto - LDFLAGS += -Wl,--large-address-aware -lm -lwsock32 -flto + CFLAGS += -march=pentium4 $(FLTO) + LDFLAGS += -Wl,--large-address-aware -lm -lwsock32 $(FLTO) MKDIR_PREFIX = mkdir -p else MKDIR_PREFIX = mkdir -p UNAME := $(shell uname) ifeq ($(UNAME), Linux) OPEN_HTML=firefox - CFLAGS += -flto - LDFLAGS += --static -flto + CFLAGS += $(FLTO) + LDFLAGS += --static $(FLTO) endif ifeq ($(UNAME), Darwin) OPEN_HTML=open This way you can call "make" and get a non-lto version (buildable using gcc-4.7), or call "make FLTO=-flto" to get a version with link-time optimization (buildable with gcc-4.8). If gcc-4.7 is not the default (Can be checked by calling "gcc --version"), then you'll have to run "make CXX=gcc-4.7".
×
×
  • Create New...