Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi check for Freeswitch 1.7 #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check for rpi 3
Change `-march=` option
  • Loading branch information
leonmak authored Dec 5, 2017
commit 9160013ae9647160577abe2275b94627be704044
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ PROC?=$(shell uname -m)

CC=gcc
CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic
MODEL=$(cat /proc/device-tree/model)
Copy link
Owner

@xadhoom xadhoom Dec 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will fail on standard system and no error handling is done

ifeq (${PROC},x86_64)
CFLAGS+=-m64 -mtune=generic
elif [[ $MODEL == *"Raspberry Pi"* ]]
-march=armv7
else
CFLAGS+=-m32 -march=i686
endif
Expand Down