22 lines
540 B
Bash
22 lines
540 B
Bash
Index: build/linux/python_arch.sh
|
|
===================================================================
|
|
--- build/linux/python_arch.sh (revision 90205)
|
|
+++ build/linux/python_arch.sh (working copy)
|
|
@@ -10,7 +10,15 @@
|
|
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
|
|
#
|
|
|
|
-python=$(readlink -f "$1")
|
|
+UNAME=`uname`
|
|
+
|
|
+# FreeBSD readlink lacks -f support before 9.0
|
|
+if [ ${UNAME} = "FreeBSD" ]; then
|
|
+ python=$(greadlink -f "$1")
|
|
+else
|
|
+ python=$(readlink -f "$1")
|
|
+fi
|
|
+
|
|
if [ ! -r "$python" ]; then
|
|
echo unknown
|
|
exit 0
|