trns1997 commented on PR #16976:
URL: https://github.com/apache/nuttx/pull/16976#issuecomment-3257385667

   @anchao i prefere option 2 as well but doesn't this already do the trick:
   ```
   APPLD=gnu-elf.ld
   
   if [ -f "${BOARDDIR}/scripts/${APPLD}" ]; then
     cp -f "${BOARDDIR}/scripts/${APPLD}" "${EXPORTDIR}/scripts/."
   elif [ -f "${TOPDIR}/libs/libc/elf/${APPLD}" ]; then
     cp -f "${TOPDIR}/libs/libc/elf/${APPLD}" "${EXPORTDIR}/scripts/."
   fi
   ```
   
   But maybe for clarity sake its better to check for the `CONFIG_LIBC_ELF` 
var. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to