Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-L during linkage doesn't take preference anymore #67

Open
jens-maus opened this issue Nov 2, 2016 · 1 comment
Open

-L during linkage doesn't take preference anymore #67

jens-maus opened this issue Nov 2, 2016 · 1 comment

Comments

@jens-maus
Copy link
Member

In previous version of the cross compiler using "-L

" and "-l" during linkage resulted in GCC taking the specified -L as a preference. With your toolchain, however, specifying -L still results in the compiler using its internal linker pathes as preference.

This has the negative effect, that e.g. for our YAM project (https://github.com/jens-maus/yam) our own clib2 replacement libs weren't taken but the global ones from /opt/m68k-amigaos/... which caused some severe trouble since we requiring the thread safe variant of clib2.

See here for the fix we applied recently.
jens-maus/yam@941adb5

It would therefore be a good idea to restore the old behavior in -L command-line options taking preference over the internal ones GCC specified for the c-runtime library used.

@jens-maus
Copy link
Member Author

After some analysis, could it be that this is actually a result of your latest changes to have a -mcrt= option to switch c-runtime libraries? See here:

https://github.com/cahirwpz/amigaos-gcc-2.95.3/blob/ff0d14cc2fa7361db1fb522d4be25a04c18f1765/gcc/config/m68k/amigaos.h#L227

In there you explicitly use -L during linkage yourself and it might be that this always takes preference over user specified -L options afterwards? If this is the case then you would need another solution to specify the linker search path, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant