Skip to content

Conversation

@xeioex
Copy link
Contributor

@xeioex xeioex commented Nov 19, 2025

No description provided.

Copy link

@BalkanMadman BalkanMadman left a comment

Choose a reason for hiding this comment

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

One more request, please. Could you please call pkg-config via a variable ${PKG_CONFIG} that holds the path to pkg-config and defaults to pkg-config.

The use for the variable is cross-compilation where the required pkg-config might not be in path and needs to be specified explicitly.

@BalkanMadman
Copy link

Otherwise, LGTM.

@BalkanMadman
Copy link

Basically, like this: https://github.com/BalkanMadman/njs/blob/b31b34ae941d19bc13524dfec2519283aa09baa6/auto/quickjs#L10-L12:

# Alternative pkg-config binary can be supplied by setting the PKG_CONFIG
# environment variable.
: "${PKG_CONFIG:=pkg-config}"

@xeioex
Copy link
Contributor Author

xeioex commented Nov 19, 2025

@BalkanMadman

One more request, please. Could you please call pkg-config via a variable ${PKG_CONFIG} that holds the path to pkg-config and defaults to pkg-config.

I prefer to not have ad-hoc variables for various tools. You have to add variables anyway, so modifying PATH or PKG_CONFIG_PATH looks like a better option for me. As I did in CI.

With other feedback, I do not mind applying your changes. Will do it later.

@BalkanMadman
Copy link

I prefer to not have ad-hoc variables for various tools. You have to add variables anyway, so modifying PATH or PKG_CONFIG_PATH looks like a better option for me. As I did in CI.

With other feedback, I do not mind applying your changes. Will do it later.

Reasonable, thank you!

@xeioex xeioex requested review from BalkanMadman and VadimZhestikov and removed request for BalkanMadman November 20, 2025 01:20
Copy link

@BalkanMadman BalkanMadman left a comment

Choose a reason for hiding this comment

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

Thank you for polishing the idea! LGTM

Copy link
Contributor

@VadimZhestikov VadimZhestikov left a comment

Choose a reason for hiding this comment

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

Looks good

@xeioex xeioex merged commit b4be482 into nginx:master Nov 20, 2025
2 checks passed
@xeioex xeioex deleted the quickjs-ng-0.11.0 branch November 20, 2025 17:03
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.

3 participants