# 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 \
--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}}