openbsd-ports/net/olsrd/patches/patch-src_cfgparser_Makefile
2006-02-14 23:48:10 +00:00

17 lines
457 B
Plaintext

$OpenBSD: patch-src_cfgparser_Makefile,v 1.3 2006/02/14 23:48:10 pvalchev Exp $
--- src/cfgparser/Makefile.orig Tue Feb 14 16:21:49 2006
+++ src/cfgparser/Makefile Tue Feb 14 16:23:10 2006
@@ -71,10 +71,10 @@ else
ifeq (${OS}, osx)
LDFLAGS += -dynamiclib -single_module
else
-LDFLAGS += -shared -Wl,-soname,$(LIBNAME)
+LDFLAGS += -shared -fPIC -Wl,-soname,$(LIBNAME)
endif
-CFLAGS += -DMAKELIB
+CFLAGS += -DMAKELIB -fPIC
NAME = $(LIBNAME)
endif