simoncozens/sile — pull request #25 by ntd (2014-10-28 08:36:36+00:00)
Title: Compilation fails on ArchLinux 64 bit

On my system the compilation fails with the following error:

```
LC_ALL=C make
Making all in libtexpdf
make[1]: Entering directory '/home/nicola/sandbox/sile/libtexpdf'
make all-am
make[2]: Entering directory '/home/nicola/sandbox/sile/libtexpdf'
make[2]: Leaving directory '/home/nicola/sandbox/sile/libtexpdf'
make[1]: Leaving directory '/home/nicola/sandbox/sile/libtexpdf'
Making all in src
make[1]: Entering directory '/home/nicola/sandbox/sile/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -I.. -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -O2 -Wall -module -avoid-version -shared -o justenoughlibtexpdf.la -rpath /usr/local/share/sile/core justenoughlibtexpdf_la-justenoughlibtexpdf.lo ../libtexpdf/.libs/libtexpdf.a -lfreetype

*** Warning: Linking the shared library justenoughlibtexpdf.la against the
*** static library ../libtexpdf/.libs/libtexpdf.a is not portable!
libtool: link: gcc -shared -fPIC -DPIC .libs/justenoughlibtexpdf_la-justenoughlibtexpdf.o ../libtexpdf/.libs/libtexpdf.a -lfreetype -O2 -Wl,-soname -Wl,justenoughlibtexpdf.so -o .libs/justenoughlibtexpdf.so
/usr/bin/ld: ../libtexpdf/.libs/libtexpdf.a(libtexpdf_la-fontmap.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
../libtexpdf/.libs/libtexpdf.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:443: recipe for target 'justenoughlibtexpdf.la' failed
make[1]: *** [justenoughlibtexpdf.la] Error 1
make[1]: Leaving directory '/home/nicola/sandbox/sile/src'
Makefile:507: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
```

I had to link against the `.la` object instead to be able to complete the build.