Skip to content

Conversation

@marckleinebudde
Copy link

The lib/libxdp/Makefile supports setting of OBJDIR, the directory where compiled object are placed. However when set, linking fails.

Set OBJDIR and pass it down the tests, so that linking works if OBJDIR is set.

The lib/libxdp/Makefile supports setting of OBJDIR, the directory
where compiled object are placed. However when set, linking fails.

Set OBJDIR and pass it down the tests, so that linking works if OBJDIR
is set.

Signed-off-by: Marc Kleine-Budde <[email protected]>
EXTRA_USER_DEPS +=

LDFLAGS+=-L$(LIBXDP_DIR)
LDFLAGS+=-L$(LIBXDP_DIR)/$(OBJDIR)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implies that OBJDIR is always relative to LIBXDP_DIR - I am not sure there is any such guarantee? I.e., OBJDIR could be an absolute path?

How were you setting OBJDIR, exactly, when you ran into this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed I'm setting OBJDIR=output.

Will take care both both cases OBJDIR is absolute and relative.

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