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

Last change on this file since 1030 was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

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