[ofa-general] [PATCH 2/6] ibutils/ibdm: Add -fPIC to libreplace build
sebastien dugue
sebastien.dugue at bull.net
Wed Sep 2 03:05:51 PDT 2009
This allows to build under FC11. Otherwise, building shared libraries using
libreplace results in the following error:
.../ibutils/ibdm/replace/libreplace.a(regex.o): relocation R_X86_64_32S against
`a local symbol' can not be used when making a shared object;
recompile with -fPIC
.../ibutils/ibdm/replace/libreplace.a: could not read symbols: Bad value
Signed-off-by: Sebastien Dugue <sebastien.dugue at bull.net>
---
ibdm/replace/Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ibdm/replace/Makefile.am b/ibdm/replace/Makefile.am
index a878772..f03bb30 100644
--- a/ibdm/replace/Makefile.am
+++ b/ibdm/replace/Makefile.am
@@ -5,3 +5,4 @@ INCLUDES = -I$(top_builddir) -I$(top_srcdir)
noinst_LIBRARIES = libreplace.a
libreplace_a_SOURCES =
libreplace_a_LIBADD = @LIBOBJS@
+AM_CFLAGS = -fPIC
--
1.6.3.1
More information about the general
mailing list