Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2510 by adding CFLAGS=-fPIC when --enable-shared=no is in effect to force generation of relocatable code.
Signed-off-by: Bill Fischofer <[email protected]> --- Changes for v3: - Correct test directionality to make --enable-shared=yes the default configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 983b221..f33422a 100644 --- a/configure.ac +++ b/configure.ac @@ -189,6 +189,14 @@ fi AC_SUBST(_ODP_INLINES) ########################################################################## +# Generate PCI if sharing not supported +########################################################################## +if test x$enable_shared == xno; +then + CFLAGS="$CFLAGS -fPIC" +fi + +########################################################################## # Setup doxygen documentation ########################################################################## DX_HTML_FEATURE(ON) -- 2.7.4
