From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 28 Mar 2012 15:18:08 +0200 Subject: [Buildroot] [PATCH 2/2] microperl: install host-microperl in $(HOST_DIR)/opt/perl In-Reply-To: References: <87fwctb4gn.fsf@macbook.be.48ers.dk> <20120328095532.71abc612@skate> <87bonhax4p.fsf@macbook.be.48ers.dk> <20120328125547.6873d986@skate> <20120328145211.470f0fc3@skate> Message-ID: <20120328151808.17795410@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Wed, 28 Mar 2012 14:01:56 +0100, Will Newton a ?crit : > [win at lemeta01 buildroot]$ env | grep LD_LIBRARY > [win at lemeta01 buildroot]$ ./output/host/usr/bin/arm-linux-readelf -a > ./output/host/usr/lib/perl/auto/XML/Parser/Expat/Expat.so | grep RPATH > [win at lemeta01 buildroot]$ Ah, ah, this is our problem. > Although the makefiles do mention rpath, but that one does not seem to > be getting used either: We have a rpath set in HOST_LDFLAGS, but this variable doesn't seem to be used when building host-libxml-parser-perl. However, by Expat/Makefile contains LD_RUN_PATH="/opt/outputs/perl/host/usr/lib" in the environment when calling ld: LD_RUN_PATH="/opt/outputs/perl/host/usr/lib" cc -shared -O2 -g -L/usr/local/lib -fstack-protector Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.so \ -L/opt/outputs/perl/host/usr/lib -lexpat And LD_RUN_PATH is used by ld as the RPATH when no -rpath option is used. I guess this LD_RUN_PATH is set because we run the Makefile.PL script with INSTALLSITELIB=/opt/outputs/perl/host/usr/lib/perl. Could you post the output of: rm -rf output/build/host-libxml-parser-perl* make Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com