CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
shadow: fixed FS#53 using lt_sysroot to prioritize our CLFS
authorVictor Martinez <pitillo@ono.com>
Fri, 13 Sep 2013 21:25:12 +0000 (21:25 +0000)
committerVictor Martinez <pitillo@ono.com>
Fri, 13 Sep 2013 21:25:12 +0000 (21:25 +0000)
shadow/Pkgfile

index d570a5e502a023bb4fcf6ba066e0a1d0bc14dfb2..3766631b120807a7b6765387d22bdc2329006c10 100644 (file)
@@ -15,6 +15,9 @@ build() {
 
   echo "ac_cv_func_setpgrp_void=yes" >> config.cache
 
+  # Fix first configure to point to the right place
+  sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i aclocal.m4
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
@@ -28,6 +31,9 @@ build() {
               --without-audit \
               --cache-file=config.cache
 
+  # Forcing libtool to prioritize our sysroot
+  sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i libtool
+
   make
   make DESTDIR=$PKG install