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

add special language linker flags for package #5644

Merged
merged 1 commit into from
Sep 21, 2024
Merged

add special language linker flags for package #5644

merged 1 commit into from
Sep 21, 2024

Conversation

waruqi
Copy link
Member

@waruqi waruqi commented Sep 21, 2024

@waruqi waruqi added this to the v2.9.6 milestone Sep 21, 2024
@waruqi waruqi merged commit a44ccf7 into dev Sep 21, 2024
38 checks passed
@waruqi waruqi deleted the ldflags branch September 21, 2024 14:19
@xq114
Copy link
Contributor

xq114 commented Sep 21, 2024

For mixed c/fortran target, which of the flags will be used? Will both ldflags and fcldflags be applied?

@waruqi
Copy link
Member Author

waruqi commented Sep 21, 2024

For mixed c/fortran target, which of the flags will be used? Will both ldflags and fcldflags be applied?

混合的情况,linker 走的是 toolchain/gfortran 。。也就是 fcld 配置的值。。所以优先用的还是 fcldflags,如果用了 fcldflags ,就不会再用 ldflags。。

就是为了在 package/toolchain 中进行区分设置,避免冲突

目前仅仅 package/toolchain 配置内部,区分 fcldflags,ldflags。。

而 target 目前仅仅只有 add_ldflags,所以如果是 target 里面配置,总是使用 add_ldflags 就行了。。因为一个 target 总归只会使用一个 linker 。

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

Successfully merging this pull request may close these issues.

2 participants