source: trunk/config.tests/unix/bsymbolic_functions.test@ 203

Last change on this file since 203 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

  • Property svn:executable set to *
File size: 544 bytes
Line 
1#!/bin/sh
2
3BSYMBOLIC_FUNCTIONS_SUPPORT=no
4COMPILER=$1
5VERBOSE=$2
6
7cat >>bsymbolic_functions.c << EOF
8int main() { return 0; }
9EOF
10
11"$COMPILER" -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c >/dev/null 2>&1 && BSYMBOLIC_FUNCTIONS_SUPPORT=yes
12rm -f bsymbolic_functions.c libtest.so
13
14# done
15if [ "$BSYMBOLIC_FUNCTIONS_SUPPORT" != "yes" ]; then
16 [ "$VERBOSE" = "yes" ] && echo "Symbolic function binding disabled."
17 exit 0
18else
19 [ "$VERBOSE" = "yes" ] && echo "Symbolic function binding enabled."
20 exit 1
21fi
Note: See TracBrowser for help on using the repository browser.