-
Notifications
You must be signed in to change notification settings - Fork 13
build: don't hard-code pkg-config #17
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
base: master
Are you sure you want to change the base?
Conversation
# test for essential build dependencies | ||
ifeq ($(origin PKG_CONFIG), undefined) | ||
PKG_CONFIG = $(CROSS_COMPILE)pkg-config | ||
ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),) |
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.
Please don't use this. "which" is less likely to be installed than "pkg-config".
"command -v" is a portable (POSIX mandated) equivalent to "which".
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'll see about improving the check for mupen64plus-core in the near future and then change it here too depending on their response.
On second look I didn't do quite enough so I changed the check to better match the current style in mupen64plus-core. |
Better matches the style in mupen64plus-core. Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17
) Better matches the style in mupen64plus-core. Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net>
Closes: https://bugs.gentoo.org/941889 Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17 Upstream-PR: Rosalie241/RMG#296 Upstream-Commit: Rosalie241/RMG@f6b73b8 Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This is useful for distros that set
PKG_CONFIG
in the environment. The check was copied frommupen64plus-core
.