Skip to content

Commit b523b1a

Browse files
keith-packardnashif
authored andcommitted
picolibc: Fix LINK_LIB_SPEC
Use -T instead of %T as %T requires that the target exists, and the whole point of this bit of code is to allow it to *not* exist. Signed-off-by: Keith Packard <[email protected]>
1 parent 44a5a70 commit b523b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/picolibc-spec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242
#undef LINK_LIBC_SPEC
4343
#define LINK_LIBC_SPEC \
44-
"%{!r:%{!T*: %:if-exists-then-else(%:find-file(" PICOLIBC_LD ") %T" PICOLIBC_LD ")}}" \
44+
"%{!r:%{!T*: %:if-exists-then-else(%:find-file(" PICOLIBC_LD ") -T" PICOLIBC_LD ")}}" \
4545
" %{-printf=*:--defsym=" USER_LABEL_PREFIX "vfprintf=" USER_LABEL_PREFIX "__%*_vfprintf}" \
4646
" %{-scanf=*:--defsym=" USER_LABEL_PREFIX "vfscanf=" USER_LABEL_PREFIX "__%*_vfscanf}"
4747

0 commit comments

Comments
 (0)