Skip to contentSkip to conversation

amdgpu: add libdrm as private requirement/dependency

PATCH In review Emil Velikov 2 participants 4 messages Jan 31, 2016 – Feb 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 amdgpu: add libdrm as private requirement/dependency

Otherwise libdrm.so won't end up in the --libs, when one static links libdrm_amdgpu.

Cc Michel Dänzer <[email protected]>
Cc Christian König <[email protected]>
---
 amdgpu/libdrm_amdgpu.pc.in | 1 +
 1 file changed, 1 insertion(+)
amdgpu/libdrm_amdgpu.pc.in +1 -0
index 417865e..f1c552a 100644
@@ -8,3 +8,4 @@ Description: Userspace interface to kernel DRM services for amdgpu
 Version: @PACKAGE_VERSION@
 Libs: -L${libdir} -ldrm_amdgpu
 Cflags: -I${includedir} -I${includedir}/libdrm
+Requires.private: libdrm
Signature · 6 lines
2.6.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/3 radeon: add libdrm to Requires.private

Equivalent to the amdgpu commit before. Additionally, when libdrm is installed to a 'non-default' location, users of libdrm_radeon will fail to build, as radeon_cs.h (and maybe others) won't have their dependencies (drm.h radeon_drm.h) fulfilled.

Cc Michel Dänzer <[email protected]>
Cc Christian König <[email protected]>
---
 radeon/libdrm_radeon.pc.in | 1 +
 1 file changed, 1 insertion(+)
radeon/libdrm_radeon.pc.in +1 -0
index 68ef0ab..432993a 100644
@@ -8,3 +8,4 @@ Description: Userspace interface to kernel DRM services for radeon
 Version: @PACKAGE_VERSION@
 Libs: -L${libdir} -ldrm_radeon
 Cflags: -I${includedir} -I${includedir}/libdrm
+Requires.private: libdrm
Signature · 6 lines
2.6.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

PATCH 3/3 libkms: add libdrm to Requires.private

In reply to Emil Velikov

Analogous to last two changes (amdgpu and radeon).

Cc Jakob Bornecrantz <[email protected]>
---
 libkms/libkms.pc.in | 1 +
 1 file changed, 1 insertion(+)
libkms/libkms.pc.in +1 -0
index 511535a..1421b3e 100644
@@ -8,3 +8,4 @@ Description: Library that abstract aways the different mm interface for kernel d
 Version: 1.0.0
 Libs: -L${libdir} -lkms
 Cflags: -I${includedir}/libkms
+Requires.private: libdrm
Signature · 6 lines
2.6.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/3
#3 lore raw
In reply to Emil Velikov
Quoted 6 lines · Emil Velikov

Otherwise libdrm.so won't end up in the --libs, when one static links libdrm_amdgpu.

Cc Michel Dänzer <[email protected]>
Cc Christian König <[email protected]>

This series is

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel