summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id/lib/Makefile')
-rw-r--r--extras/volume_id/lib/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile
index 96ee8f5150..95bb2ed394 100644
--- a/extras/volume_id/lib/Makefile
+++ b/extras/volume_id/lib/Makefile
@@ -5,8 +5,9 @@
# Released under the GNU General Public License, version 2.
#
includedir = ${prefix}/usr/include
-libdir = ${prefix}/lib
-usrlibdir = ${prefix}/usr/lib
+oslibdir = $(shell $(CC) $(CFLAGS) -print-multi-os-directory)
+libdir = $(realpath ${prefix}/lib/$(oslibdir))
+usrlibdir = $(realpath ${prefix}/usr/lib/$(oslibdir))
INSTALL = install -c
INSTALL_DATA = ${INSTALL} -m 644