-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use buildprefix
in a few more places
#9465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a natural thing to have and do, one would think.
clean-files += Makefile.config | ||
include mk/directories.mk | ||
|
||
-include $(buildprefix)Makefile.config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems circular. E.g. prefix
is set in Makefile.config
and mk/directories.mk
depends on the value of prefix
, so Makefile.config
needs to be included before mk/directories.mk
.
Maybe only the setting of buildprefix
should be moved to before -include $(buildprefix)Makefile.config
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it worked because the way non-:=
definitions are "lazy", but I do prefer your way because it is easier to understand. Done!
d2c6753
to
d1ba024
Compare
`installcheck` doesn't yet work, but the rest of the build can now happen mostly inside a separate build directory. Progress on NixOS#9342 Co-authored-by: Valentin Gagarin <[email protected]>
d1ba024
to
52e0911
Compare
Use `buildprefix` in a few more places (cherry picked from commit b6a3fde) Change-Id: I2790663fa9f8242ac2db6582b7e421d2fdf42942
Motivation
installcheck
doesn't yet work, but the rest of the build can now happen mostly inside a separate build directory.Context
Progress on #9342
Priorities
Add 👍 to pull requests you find important.