summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDer Messer <der-messer@gmx.de>2011-10-23 07:39:54 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-23 09:54:45 (GMT)
commit49f6439bb7ab5082aaa22a82cd6b7a2721e357bf (patch)
treedaaf618f5c2ebd64bd8a6ec39b93100d8b0e5abb
parent05eb16e14c679f92d766ace0b421e793f73faf69 (diff)
downloadpowder-49f6439bb7ab5082aaa22a82cd6b7a2721e357bf.zip
powder-49f6439bb7ab5082aaa22a82cd6b7a2721e357bf.tar.gz
Fixed bug in compile process: Linker option '-lrt' was not set so ld
complained about "undefined reference to 'clock_gettime'"
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 399f6d6..071d5a5 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ PYCOMMAND := $(PY_BIN) getheader.py
CFLAGS := -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DGRAVFFT -Iincludes/ -D_GNU_SOURCE
OFLAGS := -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations
-LFLAGS := -lpthread -lSDL -lfftw3f -lm -lbz2 -lX11 -llua5.1 #-lpython$(PY_VERSION) -L$(PY_LIBPATH) -I$(PY_INCPATH) $(PY_LDFLAGS)
+LFLAGS := -lpthread -lSDL -lfftw3f -lm -lbz2 -lX11 -llua5.1 -lrt #-lpython$(PY_VERSION) -L$(PY_LIBPATH) -I$(PY_INCPATH) $(PY_LDFLAGS)
LFLAGS_X := -lm -lbz2 -lSDLmain -I/Library/Frameworks/Python.framework/Versions/$(PY_VERSION)/include/python$(PY_VERSION)
MFLAGS_SSE3 := -march=native -DX86 -DX86_SSE3 -msse3
MFLAGS_SSE2 := -march=native -DX86 -DX86_SSE2 -msse2