Skip to content

buildsystem: honour OBJDIR#481

Open
marckleinebudde wants to merge 1 commit intoxdp-project:mainfrom
marckleinebudde:honour-objdir
Open

buildsystem: honour OBJDIR#481
marckleinebudde wants to merge 1 commit intoxdp-project:mainfrom
marckleinebudde:honour-objdir

Conversation

@marckleinebudde
Copy link
Copy Markdown

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 <mkl@pengutronix.de>
Comment thread lib/common.mk
EXTRA_USER_DEPS +=

LDFLAGS+=-L$(LIBXDP_DIR)
LDFLAGS+=-L$(LIBXDP_DIR)/$(OBJDIR)
Copy link
Copy Markdown
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
Copy Markdown
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