3447 |
int main() { return 0; } |
int main() { return 0; } |
3448 |
EOF |
EOF |
3449 |
$rm conftest |
$rm conftest |
3450 |
$LTCC -o conftest conftest.c $deplibs |
$LTCC $LTCFLAGS -o conftest conftest.c $deplibs |
3451 |
if test "$?" -eq 0 ; then |
if test "$?" -eq 0 ; then |
3452 |
ldd_output=`ldd conftest` |
ldd_output=`ldd conftest` |
3453 |
for i in $deplibs; do |
for i in $deplibs; do |
3492 |
# If $name is empty we are operating on a -L argument. |
# If $name is empty we are operating on a -L argument. |
3493 |
if test "$name" != "" && test "$name" != "0"; then |
if test "$name" != "" && test "$name" != "0"; then |
3494 |
$rm conftest |
$rm conftest |
3495 |
$LTCC -o conftest conftest.c $i |
$LTCC $LTCFLAGS -o conftest conftest.c $i |
3496 |
# Did it work? |
# Did it work? |
3497 |
if test "$?" -eq 0 ; then |
if test "$?" -eq 0 ; then |
3498 |
ldd_output=`ldd conftest` |
ldd_output=`ldd conftest` |
4923 |
va_end (ap); |
va_end (ap); |
4924 |
} |
} |
4925 |
EOF |
EOF |
4926 |
# we should really use a build-platform specific compiler |
# we should really use a build-platform specific compiler |
4927 |
# here, but OTOH, the wrappers (shell script and this C one) |
# here, but OTOH, the wrappers (shell script and this C one) |
4928 |
# are only useful if you want to execute the "real" binary. |
# are only useful if you want to execute the "real" binary. |
4929 |
# Since the "real" binary is built for $host, then this |
# Since the "real" binary is built for $host, then this |
4930 |
# wrapper might as well be built for $host, too. |
# wrapper might as well be built for $host, too. |
4931 |
$run $LTCC -s -o $cwrapper $cwrappersource |
$run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource |
4932 |
;; |
;; |
4933 |
esac |
esac |
4934 |
$rm $output |
$rm $output |
4935 |
trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 |
trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 |
4936 |
|
|
4937 |
$echo > $output "\ |
$echo > $output "\ |
4938 |
#! $SHELL |
#! $SHELL |