{"action":"opened","issue":{"url":"https://api.github.com/repos/android-ndk/ndk/issues/752","repository_url":"https://api.github.com/repos/android-ndk/ndk","labels_url":"https://api.github.com/repos/android-ndk/ndk/issues/752/labels{/name}","comments_url":"https://api.github.com/repos/android-ndk/ndk/issues/752/comments","events_url":"https://api.github.com/repos/android-ndk/ndk/issues/752/events","html_url":"https://github.com/android-ndk/ndk/issues/752","id":344511070,"node_id":"MDU6SXNzdWUzNDQ1MTEwNzA=","number":752,"title":"-flto doesn''t work in r17b on Windows","user":{"login":"vegorovinno","id":2453670,"node_id":"MDQ6VXNlcjI0NTM2NzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2453670?v=4","gravatar_id":"","url":"https://api.github.com/users/vegorovinno","html_url":"https://github.com/vegorovinno","followers_url":"https://api.github.com/users/vegorovinno/followers","following_url":"https://api.github.com/users/vegorovinno/following{/other_user}","gists_url":"https://api.github.com/users/vegorovinno/gists{/gist_id}","starred_url":"https://api.github.com/users/vegorovinno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vegorovinno/subscriptions","organizations_url":"https://api.github.com/users/vegorovinno/orgs","repos_url":"https://api.github.com/users/vegorovinno/repos","events_url":"https://api.github.com/users/vegorovinno/events{/privacy}","received_events_url":"https://api.github.com/users/vegorovinno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T16:10:39Z","updated_at":"2018-07-25T16:10:39Z","closed_at":null,"author_association":"NONE","body":"#### Description\r\n\r\nWe've tried adding -flto to compiler flags after upgrading to r17b, since release notes contained 'LTO now works on Windows', but the link fails the same way it did before:\r\n\r\n```\r\nmake: Entering directory `E:/src/main/jni'\r\n[armeabi-v7a] Install        : libfmod.so => libs/armeabi-v7a/libfmod.so\r\n[armeabi-v7a] SharedLibrary  : libmain.so\r\n\r\nC:/Work/android-ndk-r17b/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\\ld: error: E:/src/main/obj/local/armeabi-v7a/objs/external/spine/src/IkConstraint.o:1:3: invalid character\r\nC:/Work/android-ndk-r17b/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\\ld: error: E:/src/main/obj/local/armeabi-v7a/objs/external/spine/src/IkConstraint.o:1:3: syntax error, unexpected $end\r\nC:/Work/android-ndk-r17b/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\\ld: error: E:/src/main/obj/local/armeabi-v7a/objs/external/spine/src/IkConstraint.o: not an object or archive\r\n...\r\n```\r\n\r\nA small snippet from NDK_LOG to confirm that clang toochain is used:\r\n\r\n```Android NDK: Selecting release optimization mode (app is not debuggable)\r\nAndroid NDK: Adding import directory: C:/Work/android-ndk-r17b/build//../sources\r\nAndroid NDK: Building application 'local' for ABI 'armeabi-v7a'\r\nAndroid NDK:   Enabling -fPIE for TARGET_PLATFORM android-16\r\nAndroid NDK: Using target toolchain 'arm-linux-androideabi-clang' for 'armeabi-v7a' ABI (through NDK_TOOLCHAIN_VERSION)\r\n```\r\n\r\n#### Environment Details\r\n\r\n* NDK Version: 17.1.4828580\r\n* Build system: ndk-build\r\n* Host OS: Windows\r\n* Compiler: clang\r\n* ABI: armeabi-v7a\r\n* STL: c++_static\r\n* NDK API level: android-16\r\n* Device API level: min 16 target 26\r\n"}}
{"actor":{"display_login":"vegorovinno"}}