From 6c3e21352e85ac76bc622a44d82a656926903f64 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 11 Nov 2016 12:31:25 +0100 Subject: [PATCH] remove -fPIC with CYGWIN remove "warning: -fPIC ignored for target (all code is position independent)" fixes #217 --- miniupnpc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index 72cdc0f..90be89b 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -87,7 +87,9 @@ LIBOBJS = miniwget.o minixml.o igd_desc_parse.o minisoap.o \ connecthostport.o portlistingparse.o receivedata.o upnpdev.o ifneq ($(OS), AmigaOS) +ifeq (,$(findstring CYGWIN,$(OS))) CFLAGS := -fPIC $(CFLAGS) +endif LIBOBJS := $(LIBOBJS) minissdpc.o endif