openbsd-ports/net/olsrd/patches/patch-src_cfgparser_Makefile
martin a13e234b93 - update to 0.5.6
- take over maintainership

help and ok sthen@
2008-09-04 08:52:29 +00:00

20 lines
545 B
Plaintext

$OpenBSD: patch-src_cfgparser_Makefile,v 1.4 2008/09/04 08:52:29 martin Exp $
--- src/cfgparser/Makefile.orig Wed Aug 27 12:54:24 2008
+++ src/cfgparser/Makefile Wed Aug 27 12:56:52 2008
@@ -71,13 +71,14 @@ else
ifeq (${OS}, osx)
LDFLAGS += -dynamiclib -single_module
else
-LDFLAGS += -shared -Wl,-soname,$(LIBNAME)
+LDFLAGS += -shared -fPIC -Wl,-soname,$(LIBNAME)
endif
ifeq (${OS}, win32)
LDFLAGS += -Wl,--out-implib=libolsrd_cfgparser.a -Wl,--export-all-symbols
endif
+CFLAGS += -fPIC
CPPFLAGS += -DMAKELIB
NAME = $(LIBNAME)