From 52968a7f0addba58f9050f84ef3dbb9297afde7d Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 26 May 2014 21:17:57 +0300 Subject: add -fPIC to CFLAGS when building a shared library on other platform than windows --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a43c585..2d7cc38 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ LDLIBS += -lws2_32 -lpsapi -liphlpapi SHAREDNAME = libuvh.dll else SHAREDNAME = libuvh.so +SH_CFLAGS += -fPIC endif SOURCES = uvh.c http_parser.c sds.c -- cgit v1.2.3