Mercurial > mplayer.hg
comparison configure @ 3061:6d8116bbf3b2
-rdynamic is only needed on bsd's (well... it was the case in C1)
neither linux nor qnx need it and it doesn't help for static compilation
too...
author | pl |
---|---|
date | Thu, 22 Nov 2001 01:56:10 +0000 |
parents | a78b90991320 |
children | d1a4e18e803d |
comparison
equal
deleted
inserted
replaced
3060:33989b5b8d02 | 3061:6d8116bbf3b2 |
---|---|
1091 _def_dl='#undef HAVE_LIBDL' | 1091 _def_dl='#undef HAVE_LIBDL' |
1092 fi | 1092 fi |
1093 echores "$_dl" | 1093 echores "$_dl" |
1094 | 1094 |
1095 | 1095 |
1096 echocheck "dynamic linking" | 1096 #echocheck "dynamic linking" |
1097 _ld_dl_dynamic='' | |
1098 bsd && _ld_dl_dynamic='-rdynamic' | |
1097 # FIXME !! make this dynamic detection to work | 1099 # FIXME !! make this dynamic detection to work |
1098 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic) | 1100 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic) |
1099 _ld_dl_dynamic='' | |
1100 if qnx ; then | |
1101 _ld_dl_dynamic='' | |
1102 else | |
1103 _ld_dl_dynamic='-rdynamic' | |
1104 fi | |
1105 #cat > $TMPC << EOF | 1101 #cat > $TMPC << EOF |
1106 #int main(void) { return 0; } | 1102 #int main(void) { return 0; } |
1107 #EOF | 1103 #EOF |
1108 #if cc_check -rdynamic ; then | 1104 #if cc_check -rdynamic ; then |
1109 # _ld_dl_dynamic='-rdynamic' | 1105 # _ld_dl_dynamic='-rdynamic' |
1110 #elif cc_check -Bdynamic ; then | 1106 #elif cc_check -Bdynamic ; then |
1111 # _ld_dl_dynamic='-Bdynamic' | 1107 # _ld_dl_dynamic='-Bdynamic' |
1112 #elif cc_check ; then | 1108 #elif cc_check ; then |
1113 # _ld_dl_dynamic='' | 1109 # _ld_dl_dynamic='' |
1114 #fi | 1110 #fi |
1115 echores "using $_ld_dl_dynamic" | 1111 #echores "using $_ld_dl_dynamic" |
1116 | 1112 |
1117 | 1113 |
1118 echocheck "pthread" | 1114 echocheck "pthread" |
1119 cat > $TMPC << EOF | 1115 cat > $TMPC << EOF |
1120 #include <pthread.h> | 1116 #include <pthread.h> |
2361 else | 2357 else |
2362 _confcygwin="TARGET_CYGWIN = no" | 2358 _confcygwin="TARGET_CYGWIN = no" |
2363 fi | 2359 fi |
2364 | 2360 |
2365 _ld_arch="${_ld_arch} $_ld_pthread $_ld_dl $_ld_dl_dynamic" | 2361 _ld_arch="${_ld_arch} $_ld_pthread $_ld_dl $_ld_dl_dynamic" |
2366 #bsd && _ld_arch="-rdynamic $_ld_arch" | |
2367 bsdos && _ld_arch="$_ld_arch -ldvd" | 2362 bsdos && _ld_arch="$_ld_arch -ldvd" |
2368 | 2363 |
2369 _def_debug='#undef MP_DEBUG' | 2364 _def_debug='#undef MP_DEBUG' |
2370 test "$_debug" && _def_debug='#define MP_DEBUG 1' | 2365 test "$_debug" && _def_debug='#define MP_DEBUG 1' |
2371 | 2366 |