Commit 8067d716 authored by eugenis's avatar eugenis Committed by Commit bot

Add an instrumented library stub.

Add an empty file with the right name under instrumented_libraries to
convince NSS not to load the system-wide uninstrumented library with
the same name. We can not build this library from source.

BUG=520257
TBR=glider@chromium.org

Review URL: https://codereview.chromium.org/1640873003

Cr-Commit-Position: refs/heads/master@{#371931}
parent fbfb39d1
......@@ -199,6 +199,7 @@
'<(_sanitizer_type)-libpixman-1-0',
'<(_sanitizer_type)-brltty',
'<(_sanitizer_type)-libva1',
'<(_sanitizer_type)-libcredentialkit_pkcs11-stub',
],
'conditions': [
['"<(_ubuntu_release)"=="precise"', {
......@@ -857,5 +858,26 @@
'pre_build': 'scripts/pre-build/autoreconf.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
# Creates a stub to convince NSS to not load the system-wide uninstrumented library.
# It appears that just an empty file is enough.
'package_name': 'libcredentialkit_pkcs11-stub',
'target_name': '<(_sanitizer_type)-<(_package_name)',
'type': 'none',
'actions': [
{
'action_name': '<(_package_name)',
'inputs': [],
'outputs': [
'<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/<(_package_name).txt',
],
'action': [
'touch',
'<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/lib/libcredentialkit_pkcs11.so.0',
'<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/<(_package_name).txt',
],
},
],
},
],
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment