From 644db3893a28a7a70a3e07d4a20a3d5dd40ecdc5 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 13 Nov 2012 10:35:00 +0000
Subject: [PATCH] - Added SHARED define for building with -fPIC
---
library/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/library/Makefile b/library/Makefile
index 7983f7b53..f9e5062d9 100644
--- a/library/Makefile
+++ b/library/Makefile
@@ -18,7 +18,9 @@ endif
# CFLAGS += -D_BSD_EXTENSION
# To compile as a shared library:
-# CFLAGS += -fPIC
+ifdef SHARED
+CFLAGS += -fPIC
+endif
SONAME=libpolarssl.so.0