Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From d989cbdb7686c3b95dc749967f89b93e47f955a6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 3 Nov 2016 13:10:00 -0700 |
| 4 | Subject: [PATCH 07/10] Always compile libcpluff as PIC |
| 5 | |
| 6 | Fixes errors e.g. |
| 7 | |
| 8 | ld: lib/cpluff/libcpluff/.libs/libcpluff.a(pcontrol.o): relocation R_X86_64_PC32 against symbol `cp_stop_plugins' can not be used when making a shared object; recompile with -fPIC |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | configure.ac | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/configure.ac b/configure.ac |
| 16 | index 3132dc1..ab4eea3 100644 |
| 17 | --- a/configure.ac |
| 18 | +++ b/configure.ac |
| 19 | @@ -2385,7 +2385,7 @@ XB_CONFIG_MODULE([lib/cpluff], [ |
| 20 | --prefix="${prefix}" --includedir="${includedir}" --libdir="${libdir}" --datadir="${datadir}" \ |
| 21 | --host=$host_alias \ |
| 22 | --build=$build_alias \ |
| 23 | - --target=$target_alias CFLAGS="$CFLAGS" CC="$CC" CXX="$CXX" LDFLAGS="$LDFLAGS" LIBS="" |
| 24 | + --target=$target_alias --with-pic=yes CFLAGS="$CFLAGS" CC="$CC" CXX="$CXX" LDFLAGS="$LDFLAGS" LIBS="" |
| 25 | #LDFLAGS="$LDFLAGS -Wl,-read_only_relocs,suppress" |
| 26 | ], [0]) |
| 27 | |
| 28 | -- |
| 29 | 2.10.2 |
| 30 | |