[PATCH 2/2] Fixed installation path for 64-bit libvolume_id.so

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Installing 64-bit libraries in /lib and /usr/lib
is wrong.

Signed-off-by: Thomas Koeller <thomas@xxxxxxxxxxxxxxxxxx>
---
 extras/volume_id/lib/Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile
index 96ee8f5..95bb2ed 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
-- 
1.5.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux