More efficient packaging when NO_LIBC is specified. by marcomagdy · Pull Request #8 · awslabs/aws-lambda-cpp · GitHub
Skip to content

More efficient packaging when NO_LIBC is specified.#8

Merged
marcomagdy merged 5 commits into
masterfrom
packaging
Dec 5, 2018
Merged

More efficient packaging when NO_LIBC is specified.#8
marcomagdy merged 5 commits into
masterfrom
packaging

Conversation

@marcomagdy

Copy link
Copy Markdown
Contributor

Description of changes:

  • When NO_LIBC is used, exclude the libc libraries that are directly linked to the binary and show up in the ldd result.
  • Add a test that utilizes the packaging script with NO_LIBC
  • Set the AWS_EXECUTION_ENV variable to 'lambda-cpp' to show up in the SDK metrics
  • (bonus) Remove the 'algorithm' header file. It's not needed.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread packaging/packager Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A function author that also mutates the LD_LIBRARY_PATH environment variable might find this prepend surprising. Using /lib64/ld-linux-x86-64.so.2 --library-path ... should provide the same behavior, but still allow arbitrary LD_LIBRARY_PATH.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The --library-path switch causes the paths defined in LD_LIBRARY_PATH to be ignored. See https://linux.die.net/man/8/ld-linux
I'll try switching it to append rather than prepend.

@bmoffatt bmoffatt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. LMK if you think the LD_LIBRARY_PATH comment is relevant.

@marcomagdy marcomagdy merged commit 9183f81 into master Dec 5, 2018
@marcomagdy marcomagdy deleted the packaging branch December 5, 2018 22:18
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