From: Andreas Tonnesen Date: Sat, 19 Nov 2005 08:43:51 +0000 (+0000) Subject: x86_64 patch from Bernd X-Git-Tag: OLSRD_0_4_10~23 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=7f9129bf2b5feeab267b0408fca83156d24ba8e0;ds=inline x86_64 patch from Bernd --- diff --git a/make/Makefile.linux b/make/Makefile.linux index eb57740f..e8ca02fc 100644 --- a/make/Makefile.linux +++ b/make/Makefile.linux @@ -16,6 +16,13 @@ INSTALL_LIB = install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); /sbin/ldconfig -n $(LIBDIR) ifdef OLSRD_PLUGIN +GENERATE_PIC = true +endif +ifeq ($(shell arch),x86_64) +GENERATE_PIC = true +endif + +ifdef GENERATE_PIC CFLAGS += -fPIC LDFLAGS += -fPIC endif