summaryrefslogtreecommitdiff
path: root/recipes-graphics/mesa/mesa/apalis-tk1/0001-pkg-config-files-add-tegra-paths.patch
blob: 0637c7f3bed6039f78a0795459e20750890e78d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From 376a4dc8af02b45a79c44000e9d172fd0169d89a Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
Date: Wed, 19 Sep 2018 15:43:34 +0200
Subject: [PATCH] pkg config files: add tegra paths

Add the paths to the tegra specific libraries.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 src/egl/main/egl.pc.in          | 2 +-
 src/mapi/es1api/glesv1_cm.pc.in | 2 +-
 src/mapi/es2api/glesv2.pc.in    | 2 +-
 src/mesa/gl.pc.in               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/egl/main/egl.pc.in b/src/egl/main/egl.pc.in
index fd6904b..ceaff42 100644
--- a/src/egl/main/egl.pc.in
+++ b/src/egl/main/egl.pc.in
@@ -7,6 +7,6 @@ Name: egl
 Description: Mesa EGL library
 Requires.private: @GL_PC_REQ_PRIV@
 Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lEGL
+Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lEGL
 Libs.private: @GL_PC_LIB_PRIV@
 Cflags: -I${includedir} @GL_PC_CFLAGS@
diff --git a/src/mapi/es1api/glesv1_cm.pc.in b/src/mapi/es1api/glesv1_cm.pc.in
index 0c2fed7..d76f418 100644
--- a/src/mapi/es1api/glesv1_cm.pc.in
+++ b/src/mapi/es1api/glesv1_cm.pc.in
@@ -7,6 +7,6 @@ Name: glesv1_cm
 Description: Mesa OpenGL ES 1.1 CM library
 Requires.private:
 Version: @VERSION@
-Libs: -L${libdir} -lGLESv1_CM
+Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lGLESv1_CM
 Libs.private: @GLESv1_CM_PC_LIB_PRIV@
 Cflags: -I${includedir}
diff --git a/src/mapi/es2api/glesv2.pc.in b/src/mapi/es2api/glesv2.pc.in
index e5bf12f..fd1fccc 100644
--- a/src/mapi/es2api/glesv2.pc.in
+++ b/src/mapi/es2api/glesv2.pc.in
@@ -7,6 +7,6 @@ Name: glesv2
 Description: Mesa OpenGL ES 2.0 library
 Requires.private:
 Version: @VERSION@
-Libs: -L${libdir} -lGLESv2
+Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lGLESv2
 Libs.private: @GLESv2_PC_LIB_PRIV@
 Cflags: -I${includedir}
diff --git a/src/mesa/gl.pc.in b/src/mesa/gl.pc.in
index 680f742..1416def 100644
--- a/src/mesa/gl.pc.in
+++ b/src/mesa/gl.pc.in
@@ -7,7 +7,7 @@ Name: gl
 Description: Mesa OpenGL library
 Requires.private: @GL_PC_REQ_PRIV@
 Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -l@GL_PKGCONF_LIB@
+Libs: -L${libdir}/arm-linux-gnueabihf/tegra -L${libdir} -l@GL_PKGCONF_LIB@
 Libs.private: @GL_PC_LIB_PRIV@
 Cflags: -I${includedir} @GL_PC_CFLAGS@
 glx_tls: @GLX_TLS@
-- 
2.13.6