patch-bin_mklib 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- Mesa-7.8.2.orig/bin/mklib 2010-06-15 19:43:41.000000000 +0200
  2. +++ Mesa-7.8.2/bin/mklib 2013-02-12 13:27:53.000000000 +0100
  3. @@ -333,10 +333,6 @@ case $ARCH in
  4. # Check if objects are 32-bit and we're running in 64-bit
  5. # environment. If so, pass -m32 flag to linker.
  6. set ${OBJECTS}
  7. - ABI32=`file $1 | grep 32-bit`
  8. - if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
  9. - OPTS="-m32 ${OPTS}"
  10. - fi
  11. if [ "${ALTOPTS}" ] ; then
  12. OPTS=${ALTOPTS}
  13. @@ -390,10 +386,6 @@ case $ARCH in
  14. # Check if objects are 32-bit and we're running in 64-bit
  15. # environment. If so, pass -m32 flag to linker.
  16. set ${OBJECTS}
  17. - ABI32=`file $1 | grep 32-bit`
  18. - if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
  19. - OPTS="-m32 ${OPTS}"
  20. - fi
  21. if [ "${ALTOPTS}" ] ; then
  22. OPTS=${ALTOPTS}
  23. fi
  24. @@ -462,12 +454,6 @@ case $ARCH in
  25. # Check if objects are 32-bit and we're running in 64-bit
  26. # environment. If so, pass -m32 flag to linker.
  27. set ${OBJECTS}
  28. - ABI32=`file $1 | grep 32-bit`
  29. - if [ "${ABI32}" ] ; then
  30. - OPTS="-m32 -shared -Wl,-Bdynamic"
  31. - else
  32. - OPTS="-m64 -shared -Wl,-Bdynamic"
  33. - fi
  34. fi
  35. # If using Sun C++ compiler, need to tell it not to add runpaths