From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6198363640155079688==" MIME-Version: 1.0 From: Vicente Olivert Riera To: elfutils-devel@lists.fedorahosted.org Subject: make the shared library optional Date: Mon, 03 Nov 2014 14:45:58 +0000 Message-ID: <54579526.5080003@imgtec.com> --===============6198363640155079688== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, I'm having a failure when doing a static build of elfutils because it tries to build a shared library (.so). Could it be possible to add a configure option to disable the shared library so only the static one (.a) would be built? This is the failure I'm talking about: /home/chroot/media/code/buildroot/autobuilder/instance-0/output/host/opt/ex= t-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/4.8.3/../../../../= mipsel-buildroot-linux-uclibc/bin/ld: /home/chroot/media/code/buildroot/autobuilder/instance-0/output/host/opt/ex= t-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/4.8.3/crtbeginT.o: relocation R_MIPS_HI16 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/chroot/media/code/buildroot/autobuilder/instance-0/output/host/opt/ex= t-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/4.8.3/crtbeginT.o: could not read symbols: Bad value collect2: error: ld returned 1 exit status Makefile:939: recipe for target 'libelf.so' failed make[3]: *** [libelf.so] Error 1 The full build log is here: http://autobuild.buildroot.net/results/16f/16f6956d5a215fe678a45cc4b24ba196= 309ee05c/build-end.log Best regards, -- = Vicente Olivert Riera Graduate Software Engineer, MIPS Processor IP Imagination Technologies Limited t: +44 (0)113 2429814 www.imgtec.com --===============6198363640155079688==--