diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-12-06 13:22:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-12 21:50:18 +0000 |
commit | 3424702c09218acf4f3c265f427c4a7ab129bce9 (patch) | |
tree | 9df6dc059137733eba584bfec6a0c0e56c55fea1 /meta/recipes-graphics/mesa | |
parent | b9e3ddc42a5311a2b18d9899e19c98b6e7b25a49 (diff) | |
download | poky-3424702c09218acf4f3c265f427c4a7ab129bce9.tar.gz |
mesa: Properly create share library for x32
Also pass -mx32 parameter to gcc to create create share library
for x32.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-Off-By: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch b/meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch index 22a2339ad9..dfd67fe55c 100644 --- a/meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch +++ b/meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch | |||
@@ -4,10 +4,10 @@ get correct compiler options for x32 gcc. | |||
4 | 4 | ||
5 | Received this patch from H.J. Lu <hjl.tools@gmail.com> | 5 | Received this patch from H.J. Lu <hjl.tools@gmail.com> |
6 | 6 | ||
7 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/01 | 7 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/06 |
8 | 8 | ||
9 | --- Mesa-7.11/bin/mklib.x32 2011-11-30 14:29:14.976465283 -0800 | 9 | --- Mesa-7.11/bin/mklib.x32 2011-12-06 13:15:17.968695114 -0800 |
10 | +++ Mesa-7.11/bin/mklib 2011-11-30 14:32:48.591525193 -0800 | 10 | +++ Mesa-7.11/bin/mklib 2011-12-06 13:17:13.872152249 -0800 |
11 | @@ -335,7 +335,12 @@ case $ARCH in | 11 | @@ -335,7 +335,12 @@ case $ARCH in |
12 | set ${OBJECTS} | 12 | set ${OBJECTS} |
13 | ABI32=`file $1 | grep 32-bit` | 13 | ABI32=`file $1 | grep 32-bit` |
@@ -22,3 +22,17 @@ Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/01 | |||
22 | fi | 22 | fi |
23 | 23 | ||
24 | if [ "${ALTOPTS}" ] ; then | 24 | if [ "${ALTOPTS}" ] ; then |
25 | @@ -392,7 +397,12 @@ case $ARCH in | ||
26 | set ${OBJECTS} | ||
27 | ABI32=`file $1 | grep 32-bit` | ||
28 | if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then | ||
29 | - OPTS="-m32 ${OPTS}" | ||
30 | + ABIX32=`file $1 | grep x86-64` | ||
31 | + if [ "${ABI32}" ]; then | ||
32 | + OPTS="-mx32 ${OPTS}" | ||
33 | + else | ||
34 | + OPTS="-m32 ${OPTS}" | ||
35 | + fi | ||
36 | fi | ||
37 | if [ "${ALTOPTS}" ] ; then | ||
38 | OPTS=${ALTOPTS} | ||