Fix perl-native compilation on ubuntu 11.04
cover Fix perl-native compilation on ubuntu 11.04
Ubuntu decided to move libc and friends to /usr/lib/$ARCH-linux-gnu so we need to know that in perl's configure
Pull URL: git://git.openembedded.org/openembedded-core-contrib
Branch: kraj/perl
Browse: http://git.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/perl
Thanks,
Khem Raj <[email protected]>
---
Khem Raj (1):
perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
.../perl/files/Configure-multilib.patch | 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.4.1
PATCH 1/1 perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Ubuntu has moved eglibc to /usr/lib/${arch}-linux-gnu and /lib/${arch}-linux-gnu so we need that to be added to glibpth in Configure.
Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
--- .../perl/files/Configure-multilib.patch | 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-)
meta/recipes-devtools/perl/files/Configure-multilib.patch +7 -3
@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" : general looking path for locating libraries -glibpth="/lib /usr/lib $xlibpth" +glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth" glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" ++test -f /usr/lib/`uname -m`-linux-gnu/libc.so && glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth" test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" test -f /shlib/libc.so && glibpth="/shlib $glibpth" + test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
meta/recipes-devtools/perl/perl-native_5.12.2.bb +3 -1
@@ -4,7 +4,7 @@ SECTION = "libs" LICENSE = "Artistic|GPL" LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" -PR = "r7" +PR = "r8" LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}" inherit native +export LD="${CC}" + do_configure () { ./Configure \ -Dcc="${CC}" \
Signature · 1 line
1.7.4.1
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Quoted 54 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>--- .../perl/files/Configure-multilib.patch | 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +7
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" : general looking path for locating libraries -glibpth="/lib /usr/lib $xlibpth" +glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth" glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" ++test -f /usr/lib/`uname -m`-linux-gnu/libc.so&& glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth" test -f /usr/shlib/libc.so&& glibpth="/usr/shlib $glibpth" test -f /shlib/libc.so&& glibpth="/shlib $glibpth" + test -d /usr/lib64&& glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-1@@ -4,7 +4,7 @@ SECTION = "libs" LICENSE = "Artistic|GPL" LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" -PR = "r7" +PR = "r8" LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
meta/recipes-devtools/perl/perl-native_5.12.2.bb S = "${WORKDIR}/perl-${PV}" · line 31
Quoted 4 lines
meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-0@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}" inherit native +export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Quoted 32 lines · Tom Rini
Quoted 31 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>--- .../perl/files/Configure-multilib.patch | 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +4
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
Quoted 6 lines
meta/recipes-devtools/perl/files/Configure-multilib.patch S = "${WORKDIR}/perl-${PV}" · line 31
Quoted 3 lines
meta/recipes-devtools/perl/files/Configure-multilib.patch +1
-0inherit native +export LD="${CC}"We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
Agreed, I've merged this patch but with the tweak from Tom.
Cheers,
Richard
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
In reply to Tom RiniQuoted 61 lines · Tom Rini
Quoted 60 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>---
.../perl/files/Configure-multilib.patch | 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++-2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +5
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/libloclibpth="$loclibpth
/opt/gnu/lib/usr/GNU/lib/opt/GNU/lib": general looking path for locating libraries -glibpth="/lib
/usr/lib$xlibpth"
+glibpth="/lib/usr/lib/lib64/usr/lib64$xlibpth" glibpth="$glibpth/usr/ccs/lib/usr/ucblib/usr/local/lib" ++test -f/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth" test -f /usr/shlib/libc.so&& glibpth="/usr/shlib $glibpth" test -f /shlib/libc.so&& glibpth="/shlib $glibpth"
+ test -d /usr/lib64&& glibpth="$glibpth /lib64/usr/lib64/usr/local/lib64"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -4,7 +4,7 @@ SECTION = "libs"LICENSE = "Artistic|GPL"
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-1-PR = "r7" +PR = "r8"LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
Quoted 7 lines
Quoted 3 lines
inherit native
+export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
yes that works too
Quoted 9 lines
--
Tom Rini
Mentor Graphics Corporation_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
In reply to Tom RiniQuoted 56 lines · Tom Rini
Quoted 55 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>---
.../perl/files/Configure-multilib.patch| 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++-2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +5
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/libloclibpth="$loclibpth
/opt/gnu/lib/usr/GNU/lib/opt/GNU/lib": general looking path for locating libraries
meta/recipes-devtools/perl/files/Configure-multilib.patch +1
-1-glibpth="/lib /usr/lib $xlibpth" +glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"glibpth="$glibpth
/usr/ccs/lib/usr/ucblib/usr/local/lib"
++test -f/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth" test -f /usr/shlib/libc.so&& glibpth="/usr/shlib $glibpth"
test -f /shlib/libc.so&& glibpth="/shlib $glibpth"
+ test -d /usr/lib64&& glibpth="$glibpth /lib64/usr/lib64/usr/local/lib64"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -4,7 +4,7 @@ SECTION = "libs"LICENSE = "Artistic|GPL"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-1-PR = "r7" +PR = "r8"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
Quoted 6 lines
Quoted 3 lines
inherit native
+export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
This change is not working for me on Ubuntu 11.04 {released}. The libraries are found in /lib/i386-linux-gnu and /usr/lib/i386-linux-gnu At least on the machine where it fails, uname -m gives i686, so the test
Quoted 1 line
Quoted 1 line
++test -f
/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth"
fails.
I hard coded the i386-linux-gnu paths and was able to build perl-native on Ubuntu 11.04
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Quoted 78 lines · Gary Thomas
Quoted 62 lines · Tom Rini
Quoted 60 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>---
.../perl/files/Configure-multilib.patch| 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++-2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +5
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/libloclibpth="$loclibpth
/opt/gnu/lib/usr/GNU/lib/opt/GNU/lib": general looking path for locating libraries
meta/recipes-devtools/perl/files/Configure-multilib.patch +1
-1-glibpth="/lib /usr/lib $xlibpth" +glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"glibpth="$glibpth
/usr/ccs/lib/usr/ucblib/usr/local/lib" ++test -f/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth" test -f /usr/shlib/libc.so&& glibpth="/usr/shlib $glibpth" test -f /shlib/libc.so&& glibpth="/shlib $glibpth"
+ test -d /usr/lib64&& glibpth="$glibpth /lib64/usr/lib64/usr/local/lib64"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -4,7 +4,7 @@ SECTION = "libs"LICENSE = "Artistic|GPL"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-1-PR = "r7" +PR = "r8"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"Quoted 7 lines
Quoted 3 lines
inherit native
+export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
This change is not working for me on Ubuntu 11.04 {released}. The libraries are found in
/lib/i386-linux-gnuand/usr/lib/i386-linux-gnuAt least on the machine where it fails, uname -m gives i686, so the test >> ++test -f/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth"
fails.
Quoted 2 lines
I hard coded the i386-linux-gnu paths and was able to build perl-native on Ubuntu 11.04
I used uname since I thought that was way to make it common for both x86_64 and x86 but it seems they made life harder than that. I did not have 32bit installation to verify
Quoted 11 lines
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha
Quoted 79 lines · Khem Raj
Quoted 78 lines · Gary Thomas
Quoted 62 lines · Tom Rini
Quoted 60 lines · Khem Raj
Ubuntu has moved eglibc to
/usr/lib/${arch}-linux-gnuand/lib/${arch}-linux-gnuso we need that to be added to glibpth in Configure.Currently we set LD=ld in environment for recipes inheriting native class. This overrides the LD settings in the Makefiles of perl and it tries to link by calling ld which does not work since its using -l<x> on commandline and ubuntu linker seems not to look into the new location for these libraries. Its better to use gcc for linking here anyway
Signed-off-by Khem Raj<[email protected]>---
.../perl/files/Configure-multilib.patch| 10 +++++++--- meta/recipes-devtools/perl/perl-native_5.12.2.bb | 4 +++-2 files changed, 10 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/files/Configure-multilib.patch +5
-3@@ -1,11 +1,15 @@ ---- perl-5.8.7/Configure.orig 2006-01-30 10:50:04.000000000 +0000 -+++ perl-5.8.7/Configure 2006-01-30 10:51:18.000000000 +0000 -@@ -1240,7 +1240,7 @@ +Index: perl-5.12.2/Configure +=================================================================== +--- perl-5.12.2.orig/Configure ++++ perl-5.12.2/Configure +@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/libloclibpth="$loclibpth
/opt/gnu/lib/usr/GNU/lib/opt/GNU/lib": general looking path for locating libraries
meta/recipes-devtools/perl/files/Configure-multilib.patch +1
-1-glibpth="/lib /usr/lib $xlibpth" +glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"glibpth="$glibpth
/usr/ccs/lib/usr/ucblib/usr/local/lib" ++test -f/usr/lib/uname -m-linux-gnu/libc.so&& glibpth="/usr/lib/uname -m-linux-gnu $glibpth" test -f /usr/shlib/libc.so&& glibpth="/usr/shlib $glibpth" test -f /shlib/libc.so&& glibpth="/shlib $glibpth"
+ test -d /usr/lib64&& glibpth="$glibpth /lib64/usr/lib64/usr/local/lib64"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -4,7 +4,7 @@ SECTION = "libs"LICENSE = "Artistic|GPL"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +1
-1-PR = "r7" +PR = "r8"
LIC_FILES_CHKSUM= "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"meta/recipes-devtools/perl/perl-native_5.12.2.bb +0
-0@@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"Quoted 7 lines
Quoted 3 lines
inherit native
+export LD="${CC}"
We have CCLD for when we want to use CC as our LD (and yes, this usually just ends up as CC, but lets be clear please).
This change is not working for me on Ubuntu 11.04 {released}. The libraries are found in
/lib/i386-linux-gnuand/usr/lib/i386-linux-gnuAt least on the machine where it fails, uname -m gives i686, so the testQuoted 1 line
Quoted 1 line
++test -f
/usr/lib/uname -m-linux-gnu/libc.so&&glibpth="/usr/lib/
uname -m-linux-gnu $glibpth"
fails.
Quoted 6 lines
Quoted 2 lines
I hard coded the i386-linux-gnu paths and was able to build perl-native on Ubuntu 11.04
I used uname since I thought that was way to make it common for both
x86_64and x86 but it seems they made life harder than that. I did not have 32bit installation to verify
Note: no criticism intended :-)
Perhaps some sort of wildcard could work? Just replace uname -m with "*"? I just tried this here and it seems to work on my x86 system.
$ test -f /usr/lib/*-linux-gnu/libc.so && glibpth="/usr/lib/*-linux-gnu $glibpth" $ echo $glibpth /usr/lib/i386-linux-gnu
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------