Module: xenomai-rpm Branch: for-upstream Commit: e0cc4818adf3ad582c6c2d9acdc7d696b36d1d93 URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=e0cc4818adf3ad582c6c2d9acdc7d696b36d1d93
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Feb 21 11:37:13 2010 +0100 wrap-link.sh: force object files to stage1 Force object files listed after libpthread_rt to stage1, so that no files are missed for the partial link. This should be better than getting an obscure "no input files" message from collect2. --- scripts/wrap-link.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/scripts/wrap-link.sh b/scripts/wrap-link.sh index f4826ac..9014df1 100755 --- a/scripts/wrap-link.sh +++ b/scripts/wrap-link.sh @@ -158,6 +158,13 @@ while test $# -gt 0; do stage2_args="$stage2_args $arg" ;; + *.o) + if $stage2 && expr $arg : '.*\.o$' >/dev/null; then + # Force .o to stage1 regardless of its position + stage1_args="$stage1_args $arg" + continue + fi + ;& # Falldown wanted *) if test -e "$arg"; then add_linker_obj $arg _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git