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
This commit is contained in:
OBS User mrdocs 2013-04-29 04:18:56 +00:00 committed by Git OBS Bridge
parent 9db47cb057
commit ad06e3c1b7
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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