Skip to content

Commit

Permalink
Raspberry PI fix
Browse files Browse the repository at this point in the history
Disables -msse2 instructions for RISC devices
  • Loading branch information
Zeitcoin committed May 31, 2015
1 parent a8749e9 commit 5abfbac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/makefile.unix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ USE_UPNP:=-
USE_IPV6:=1

LINK:=$(CXX)
ARCH:=$(system lscpu | head -n 1 | awk '{print $2}')

DEFS=-DBOOST_SPIRIT_THREADSAFE

Expand Down Expand Up @@ -90,10 +91,13 @@ LIBS+= \


DEBUGFLAGS=-g
ifeq (${ARCH}, i686)
EXT_OPTIONS=-msse2
endif

# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
xCXXFLAGS=-O2 -msse2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
xCXXFLAGS=-O2 $(EXT_OPTIONS) -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)

# LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only
Expand Down

0 comments on commit 5abfbac

Please sign in to comment.