-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
With for example m68k-atari-tos-gnu-gcc -o FOO.PRG foo.c -lbar the linker argument -lbar does not get passed on to the ld:
Lines 44 to 45 in 0aed1d6
| cmd "'"$TARGET_CC"'" "${args[@]}" | |
| cmd "'"$binutilsbindir/$target-ld"'" -o "$out" "$obj" |
Instead, cc gets the arguments (and ignores the linker ones), and ld gets none. Fix this by retaining relevant arguments for ld.
A workaround is to manually compile and link in two steps:
$ m68k-atari-tos-gnu-gcc -c -o foo.o foo.c
$ m68k-atari-tos-gnu-ld -o FOO.PRG foo.o -lbarReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request