Skip to content

Conversation

ziyao233
Copy link

LDFLAGS is taken into account when linking the executable, but not the shared library, which is inconsistent and may cause issues if customized settings are passed through LDFLAGS (for example, LTO). Let's include LDFLAGS in the linking command.

Fixes: b9dfb99 ("(1) Makefile: added a shared library target, (2) no longer compile the main function as part of libabc.a")

LDFLAGS is taken into account when linking the executable, but not the
shared library, which is inconsistent and may cause issues if customized
settings are passed through LDFLAGS (for example, LTO). Let's include
LDFLAGS in the linking command.

Fixes: b9dfb99 ("(1) Makefile: added a shared library target, (2) no longer compile the main function as part of libabc.a")
Signed-off-by: Yao Zi <[email protected]>
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.

1 participant