diff --git a/library/Makefile b/library/Makefile index 7983f7b531..f9e5062d9b 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