Changeset b501de7 in mainline for tools/xcw/bin/helenos-ld


Ignore:
Timestamp:
2018-11-26T13:55:51Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b555f0f
Parents:
5aa06ad
git-author:
Jiri Svoboda <jiri@…> (2018-11-25 17:54:21)
git-committer:
Jiri Svoboda <jiri@…> (2018-11-26 13:55:51)
Message:

XCW should rely on export dir instead of touching the source tree. Allow specifying alternate export dir. Add more exported libraries (yes, I know).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/xcw/bin/helenos-ld

    r5aa06ad rb501de7  
    3434XCW="$(dirname "$0")"
    3535SRC_ROOT="$XCW/../../.."
     36if [ -z "$EXPORT_DIR" ]; then
     37        EXPORT_DIR="$SRC_ROOT/uspace/export"
     38fi
    3639UARCH="$("$XCW"/helenos-bld-config --uarch)"
    3740CFLAGS="$("$XCW"/helenos-bld-config --cflags)"
     
    4346    $CFLAGS \
    4447    "$@" \
    45     "$SRC_ROOT"/uspace/lib/c/crt0.o \
    46     "$SRC_ROOT"/uspace/lib/c/crt1.o \
    47     "$SRC_ROOT"/uspace/lib/c/libc.a \
     48    "$EXPORT_DIR"/lib/crt0.o \
     49    "$EXPORT_DIR"/lib/crt1.o \
     50    "$EXPORT_DIR"/lib/libc.a \
    4851    -lgcc
Note: See TracChangeset for help on using the changeset viewer.