CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
eudev: fixed build
authorVictor Martinez <pitillo@ono.com>
Tue, 17 May 2016 19:30:40 +0000 (19:30 +0000)
committerVictor Martinez <pitillo@ono.com>
Tue, 17 May 2016 19:30:40 +0000 (19:30 +0000)
eudev/Pkgfile

index ff0f94e55b4398976fb8409606ed0316b8f2f751..7b6c9666496dcbffbd3222c0cd8a60105984a683 100644 (file)
@@ -37,7 +37,7 @@ build () {
   # udevadm build to use it later on host to generate hwdb
   pushd $SRC/$name-$version-host
   unset CC CXX AR AS RANLIB LD CFLAGS CXXFLAGS LDFLAGS
-
+  export CFLAGS="-L/usr/lib -I/usr/include -D_GNU_SOURCE"
   autoreconf -vi
   ./configure --prefix=/usr \
               --sbindir=/sbin --bindir=/sbin \
@@ -49,14 +49,14 @@ build () {
               --disable-manpages \
               --enable-split-usr
 
-  make CFLAGS="$CFLAGS -L/usr/lib -I/usr/include -D_GNU_SOURCE"
+  make
 
-  cp src/udev/udevadm $PKGMK_WORK_DIR/
+  cp src/udev/udevadm $WORK/
   popd
     
   # create binary hwdb
   LD_LIBRARY_PATH=$PKG/lib \
-  $PKGMK_WORK_DIR/udevadm hwdb --update --root=$PKG
+  $WORK/udevadm hwdb --update --root=$PKG
 
   # Devices
   mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}