From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.17.8]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Rxy2d-00061c-Ai for ptxdist@pengutronix.de; Thu, 16 Feb 2012 10:54:24 +0100 From: bernhard@bwalle.de Date: Thu, 16 Feb 2012 10:52:11 +0100 Message-Id: <1329385931-1493-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] host-e2fsprogs: Build libraries as shared libraries Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Bernhard Walle From: Bernhard Walle If both the host-e2fsprogs and host-util-linux-ng are enabled (both provide libuuid), I get following link error on a x86-64 Linux host when host-e2fsprogs is built before host-util-linux-ng: ------------- 8< -------------- libtool: install: (cd /home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/build-host/util-linux-2.19.1/shlibs/mount/src; /bin/sh /home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/build-host/util-linux-2.19.1/libtool --silent --tag CC --mode=relink gcc -std=gnu99 -fsigned-char -g -O2 -Wl,--version-script=../../../shlibs/mount/src/libmount.sym -version-info 2:0:1 -L/home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/sysroot-host/lib -Wl,-rpath -Wl,/home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages -o libmount.la -rpath /lib version.lo utils.lo test.lo init.lo cache.lo optstr.lo optmap.lo iter.lo lock.lo fs.lo tab.lo tab_parse.lo tab_update.lo context.lo context_mount.lo context_umount.lo at.lo mangle.lo canonicalize.lo strutils.lo env.lo ../../../shlibs/blkid/src/libblkid.la -inst-prefix-dir /home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/packages/host-util-linux-2.19.1) /usr/bin/ld: /home/bwalle/devel/xxxx/linux_rootfs/platform-yyyy/sysroot-host/lib/libblkid.a(cache.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC ------------- >8 -------------- Building the libraries of the host-e2fsprogs package as shared libraries instead of static libraries fixes that problem. Alternatively, it would also work to build both as static libraries. Signed-off-by: Bernhard Walle --- rules/host-e2fsprogs.make | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rules/host-e2fsprogs.make b/rules/host-e2fsprogs.make index a32ff3c..3c905fe 100644 --- a/rules/host-e2fsprogs.make +++ b/rules/host-e2fsprogs.make @@ -29,7 +29,7 @@ HOST_E2FSPROGS_ENV := $(HOST_ENV) # # autoconf # -HOST_E2FSPROGS_AUTOCONF := $(HOST_AUTOCONF) +HOST_E2FSPROGS_AUTOCONF := $(HOST_AUTOCONF) --enable-elf-shlibs HOST_E2FSPROGS_INSTALL_OPT := install install-libs # vim: syntax=make -- 1.7.9.1 -- ptxdist mailing list ptxdist@pengutronix.de