diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-10-22 13:49:32 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-11-03 14:34:54 -0800 |
commit | 11b8cee2c468b71a9629ea7f126a4935432977d1 (patch) | |
tree | a01b8a7b0e6829dc74a77c733977c7711687b008 | |
parent | 8352d7a311ae3f7838cc9d9ee0d69625f73b89e6 (diff) | |
download | mdnsresponder-marshmallow-mr2-release.tar.gz |
Stop building __DATE__/__TIME__ into Android binariesandroid-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r66android-6.0.1_r65android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r20android-6.0.1_r17android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r41marshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-release
Since every build of this library will be different due to using
__DATE__/__TIME__, every OTA will need to patch these files.
Bug: 24204119
Change-Id: I27485995147c8fdda33f4e1c766cdc67732c653a
(cherry picked from commit 362e08783425519a06da07221ca6083a5944ed62)
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | Clients/dns-sd.c | 2 | ||||
-rw-r--r-- | mDNSShared/dnssd_clientlib.c | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -53,7 +53,7 @@ LOCAL_C_INCLUDES := external/mdnsresponder/mDNSPosix \ external/mdnsresponder/mDNSCore \ external/mdnsresponder/mDNSShared -LOCAL_CFLAGS := $(commonFlags) +LOCAL_CFLAGS := $(commonFlags) -DMDNS_VERSIONSTR_NODTS=1 LOCAL_STATIC_LIBRARIES := $(commonLibs) libc LOCAL_FORCE_STATIC_EXECUTABLE := true diff --git a/Clients/dns-sd.c b/Clients/dns-sd.c index c73c221..c5a09ff 100644 --- a/Clients/dns-sd.c +++ b/Clients/dns-sd.c @@ -1338,9 +1338,11 @@ Fail: #define STRINGIFY_ARGUMENT_WITHOUT_EXPANSION(s) #s #define STRINGIFY(s) STRINGIFY_ARGUMENT_WITHOUT_EXPANSION(s) +#ifndef __ANDROID__ // NOT static -- otherwise the compiler may optimize it out // The "@(#) " pattern is a special prefix the "what" command looks for const char VersionString_SCCS[] = "@(#) dns-sd " STRINGIFY(mDNSResponderVersion) " (" __DATE__ " " __TIME__ ")"; +#endif #if _BUILDING_XCODE_PROJECT_ // If the process crashes, then this string will be magically included in the automatically-generated crash log diff --git a/mDNSShared/dnssd_clientlib.c b/mDNSShared/dnssd_clientlib.c index c3a3cfc..a92c0c8 100644 --- a/mDNSShared/dnssd_clientlib.c +++ b/mDNSShared/dnssd_clientlib.c @@ -363,4 +363,6 @@ DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex // NOT static -- otherwise the compiler may optimize it out // The "@(#) " pattern is a special prefix the "what" command looks for +#ifndef __ANDROID__ const char VersionString_SCCS_libdnssd[] = "@(#) libdns_sd " STRINGIFY(mDNSResponderVersion) " (" __DATE__ " " __TIME__ ")"; +#endif |