Skip to content

Fixes configure_library() in configure - #3135

Closed
zyxar wants to merge 1 commit into
nodejs:masterfrom
zyxar:fix-configure
Closed

Fixes configure_library() in configure#3135
zyxar wants to merge 1 commit into
nodejs:masterfrom
zyxar:fix-configure

Conversation

@zyxar

Copy link
Copy Markdown
Contributor

No description provided.

@mscdexmscdex added the build Issues and PRs related to build files or the CI. label Sep 30, 2015
@bnoordhuis

Copy link
Copy Markdown
Member

Commit log should explain what changed and why, please see CONTRIBUTING.md.

@zyxar

Copy link
Copy Markdown
ContributorAuthor

Shall I close this and resend another PR?

@jbergstroem

Copy link
Copy Markdown
Member

@zyxar just force push a new commit

@jbergstroem

Copy link
Copy Markdown
Member

There's some minor fixes needed in the commit message but I can do that later. I just need to sit down and review this properly; will be in a few days though (travelling). We have another similar PR that tries to massage this: #2758.

Comment threadconfigure

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you mean to do shared_lib + '_includes' in options?

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.

I'm inclined to think the __dict__ approach is correct here because it skips over empty flags.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@bnoordhuis Oh, you are right. In that case, we can write this as if getattr(options, shared_lib + '_includes'):. But this also will work. So, I think its okay.

Comment threadconfigure Outdated

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.

I think this line is just over 80 columns? If so, please wrap it.

@bnoordhuis

Copy link
Copy Markdown
Member

Basically LGTM. @thefourtheye You want to weigh in?

@jbergstroem

Copy link
Copy Markdown
Member

I'm way overdue on this. Apologies. I'm ok with as-is since the current state is just incorrect.

@thefourtheye

Copy link
Copy Markdown
Contributor

LGTM if the CI is green.

@bnoordhuis

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/702/

@zyxar Can you fix the style issue (if it is a style issue) and reword the commit log a little? The first line should start with build: and describe the change. Just "fix" is too vague.

@zyxar

Copy link
Copy Markdown
ContributorAuthor

@bnoordhuis Sure. I'd do it soon.

Fixes configure_library() to produce correct LDFLAGS when configuring with
prebuilt 3rd-party libraries (libuv, openssl, etc), either using `pkg-config'
or `--shared-{LIBRARY}-includes=xxx --shared-{LIBRARY}-libpath=xxx'.
bnoordhuis pushed a commit that referenced this pull request Nov 16, 2015
Fix configure_library() to produce correct LDFLAGS when configuring with
prebuilt 3rd-party libraries (libuv, openssl, etc) using `pkg-config' or
`--shared-{LIBRARY}-includes=xxx --shared-{LIBRARY}-libpath=xxx'.
PR-URL: #3135
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
@bnoordhuis

Copy link
Copy Markdown
Member

Thanks Markus, landed in e2eb334.

Just so you know, github doesn't send notifications when you add or amend commits. It's best to notify reviewers by posting a comment afterwards.

MylesBorins pushed a commit that referenced this pull request Nov 16, 2015
Fix configure_library() to produce correct LDFLAGS when configuring with
prebuilt 3rd-party libraries (libuv, openssl, etc) using `pkg-config' or
`--shared-{LIBRARY}-includes=xxx --shared-{LIBRARY}-libpath=xxx'.
PR-URL: #3135
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
@MylesBorins

Copy link
Copy Markdown
Contributor

landed in lts-v4.x-staging as aef3d54

Fishrock123 pushed a commit that referenced this pull request Nov 17, 2015
Fix configure_library() to produce correct LDFLAGS when configuring with
prebuilt 3rd-party libraries (libuv, openssl, etc) using `pkg-config' or
`--shared-{LIBRARY}-includes=xxx --shared-{LIBRARY}-libpath=xxx'.
PR-URL: #3135
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
rvagg pushed a commit that referenced this pull request Dec 4, 2015
Fix configure_library() to produce correct LDFLAGS when configuring with
prebuilt 3rd-party libraries (libuv, openssl, etc) using `pkg-config' or
`--shared-{LIBRARY}-includes=xxx --shared-{LIBRARY}-libpath=xxx'.
PR-URL: #3135
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
@jasnelljasnell mentioned this pull request Dec 17, 2015
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@zyxar@bnoordhuis@jbergstroem@thefourtheye@MylesBorins@mscdex