From ad06e3c1b7440627f241b78d80fc35ee2e40f481c86630d865947458367e96aa Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Mon, 29 Apr 2013 04:18:56 +0000 Subject: [PATCH] Accepting request 173632 from home:Reki:leechcraft:masterbranch A hack to prevent 3d-party software linking error: [ 2226s] Linking CXX shared library libleechcraft_monocle_mu.so [ 2226s] /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libfitz.a(dev_null.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC [ 2226s] /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libfitz.a: could not read symbols: Bad value [ 2226s] collect2: error: ld returned 1 exit status [ 2226s] make[2]: *** [plugins/monocle/plugins/mu/libleechcraft_monocle_mu.so] Error 1 [ 2226s] make[1]: *** [plugins/monocle/plugins/mu/CMakeFiles/leechcraft_monocle_mu.dir/all] Error 2 [ 2226s] make[1]: *** Waiting for unfinished jobs.... OBS-URL: https://build.opensuse.org/request/show/173632 OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=5 --- mupdf.changes | 6 ++++++ mupdf.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/mupdf.changes b/mupdf.changes index 6f74007..5c1c0c8 100644 --- a/mupdf.changes +++ b/mupdf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Apr 28 10:28:56 UTC 2013 - dap.darkness@gmail.com + +- Fixed "ld: relocation R_X86_64_32 against `.rodata' can not + be used when making a shared object; recompile with -fPIC". + ------------------------------------------------------------------- Fri Apr 5 17:31:25 UTC 2013 - gber@opensuse.org diff --git a/mupdf.spec b/mupdf.spec index 367cf46..4b87691 100644 --- a/mupdf.spec +++ b/mupdf.spec @@ -65,6 +65,7 @@ based on mupdf. rm -rf thirdparty %build +export CFLAGS="%{optflags} -fPIC" export XCFLAGS="%{optflags}" make %{?_smp_mflags} verbose=1 ls -1 build/debug