From 85ab42e5d2809e223179cac1dcf84746d354a07d Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 3 Apr 2017 17:57:30 -0400 Subject: [PATCH] Update --- Makefile.config.raspberry-pi-2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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