diff options
Diffstat (limited to 'eclass/udev.eclass')
-rw-r--r-- | eclass/udev.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/udev.eclass b/eclass/udev.eclass index b7c6461dd8ff..63120c14cda6 100644 --- a/eclass/udev.eclass +++ b/eclass/udev.eclass @@ -46,7 +46,8 @@ DEPEND="virtual/pkgconfig" # Get unprefixed udevdir. _udev_get_udevdir() { if $($(tc-getPKG_CONFIG) --exists udev); then - echo "$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + local udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + echo "${udevdir#${EPREFIX%/}}" else echo /lib/udev fi |