Skip to content

Commit

Permalink
CFLAGS fix in Makefile
Browse files Browse the repository at this point in the history
`-fPIC` wasn’t being added to `CFLAGS` on Linux, because it was being
overwritten later. Also updated to `-std=c11`.
  • Loading branch information
blacktm committed Mar 5, 2017
1 parent a48f626 commit be3d976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Makefile for Unix-like systems:
# macOS, Linux, Raspberry Pi, MinGW

PREFIX?=/usr/local
CFLAGS=-std=c11

# For ARM platforms
ifneq (,$(findstring arm,$(shell uname -m)))
PLATFORM=arm
Expand All @@ -21,9 +24,6 @@ ifneq (,$(findstring MINGW,$(shell uname -s)))
INCLUDES=-I/usr/local/include/
endif

PREFIX?=/usr/local
CFLAGS=-std=c99

SOURCES=simple2d shapes image sprite text sound music input controllers window
ifeq ($(PLATFORM),arm)
SOURCES+=gl gles
Expand Down

0 comments on commit be3d976

Please sign in to comment.