[Buildroot] [PATCH 2/2] microperl: install host-microperl in $(HOST_DIR)/opt/perl
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Mar 28 13:18:08 UTC 2012
Le Wed, 28 Mar 2012 14:01:56 +0100,
Will Newton <will.newton at gmail.com> 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
More information about the buildroot
mailing list