Skip to content

Commit

Permalink
lang/rust: create a symlink after install
Browse files Browse the repository at this point in the history
to the directory rust expects
  • Loading branch information
trombik committed Oct 28, 2024
1 parent b3b2fa7 commit 0ec708f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lang/rust-esp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ do-install:
@${FIND} ${STAGEDIR}${PREFIX}/${ESPRUST_ROOT_DIR}/bin ${STAGEDIR}${PREFIX}/${ESPRUST_ROOT_DIR}/lib \
${STAGEDIR}${PREFIX}/${ESPRUST_ROOT_DIR}/libexec -exec ${FILE} -i {} + | \
${AWK} -F: '/executable|sharedlib/ { print $$1 }' | ${XARGS} ${STRIP_CMD}

${MKDIR} ${STAGEDIR}${PREFIX}/${ESPRUST_ROOT_DIR}/lib/rustlib/src
(cd ${STAGEDIR}${PREFIX}/${ESPRUST_ROOT_DIR}/lib/rustlib/src && ${LN} -s ../../../../rust-esp-src/lib/rustlib/src/rust rust)
.endif
@${FIND} ${STAGEDIR}${PREFIX} -not -type d | \
${SED} -E -e 's,^${STAGEDIR}${PREFIX}/,,' \
Expand Down

0 comments on commit 0ec708f

Please sign in to comment.