From: Han Shen(沈涵) Date: Mon, 23 Apr 2012 14:28:12 +0000 (-0600) Subject: bin/mklib: remove '-m32' for arm linux X-Git-Tag: 062012170305~645 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b352d676e4ab8656a4fbae33493e5adf3a932708;p=profile%2Fivi%2Fmesa.git bin/mklib: remove '-m32' for arm linux -m32 is not a valid option for ARM. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Brian Paul --- diff --git a/bin/mklib b/bin/mklib index 56e0b36..9bac29e 100755 --- a/bin/mklib +++ b/bin/mklib @@ -334,7 +334,9 @@ case $ARCH in # environment. If so, pass -m32 flag to linker. set ${OBJECTS} ABI32=`file $1 | grep 32-bit` - if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then + ARM=`file $1 | grep ARM` + # Do not add "-m32" option for arm. + if [ -z "$ARM" -a "${ABI32}" -a `uname -m` = "x86_64" ] ; then OPTS="-m32 ${OPTS}" fi @@ -391,7 +393,9 @@ case $ARCH in # environment. If so, pass -m32 flag to linker. set ${OBJECTS} ABI32=`file $1 | grep 32-bit` - if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then + ARM=`file $1 | grep ARM` + # Do not add "-m32" option for arm. + if [ -z "$ARM" -a "${ABI32}" -a `uname -m` = "x86_64" ] ; then OPTS="-m32 ${OPTS}" fi if [ "${ALTOPTS}" ] ; then