diff --git a/Makefile.config.raspberry-pi-2 b/Makefile.config.raspberry-pi-2 index e1ba6e22..9df05313 100644 --- a/Makefile.config.raspberry-pi-2 +++ b/Makefile.config.raspberry-pi-2 @@ -5,18 +5,19 @@ # Configuration options for the makefile # Compiler options -CFLAGS ?= -O2 -Wall -march=armv6k -Iinclude -L. -COMP_CFLAGS ?= -O2 -Wall -march=armv6k -I$(PREFIX)/include -L$(PREFIX)/lib +CFLAGS ?= -O2 -fPIC -Wall -march=armv6k -Iinclude -L. +COMP_CFLAGS ?= -O2 -fPIC -Wall -march=armv6k -I$(PREFIX)/include -L$(PREFIX)/lib # Use these lines instead for debugging or profiling #CFLAGS = -g -Wall #CFLAGS = -g -pg -Wall CC ?= cc -LIBS = -pthread -lcyclone -lck -lm +LIBS = -pthread -lcyclone -lck -lm -ltommath -ldl # Commands "baked into" cyclone for invoking the C compiler CC_PROG ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o" CC_EXEC ?= "$(CC) ~exec-file~.o ~obj-files~ $(LIBS) $(COMP_CFLAGS) -o ~exec-file~" CC_LIB ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o" +CC_SO ?= "$(CC) -shared -rdynamic -o ~exec-file~.so ~exec-file~.o" AR ?= ar #CD ?= cd