x86_64 patch from Bernd
authorAndreas Tonnesen <andreto@olsr.org>
Sat, 19 Nov 2005 08:43:51 +0000 (08:43 +0000)
committerAndreas Tonnesen <andreto@olsr.org>
Sat, 19 Nov 2005 08:43:51 +0000 (08:43 +0000)
make/Makefile.linux

index eb57740..e8ca02f 100644 (file)
@@ -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