{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/394","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/394/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/394/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/394","id":118571661,"number":394,"title":"[scons]: can not find lib as dependency","user":{"login":"feng-ye","id":314167,"avatar_url":"https://avatars.githubusercontent.com/u/314167?v=3","gravatar_id":"","url":"https://api.github.com/users/feng-ye","html_url":"https://github.com/feng-ye","followers_url":"https://api.github.com/users/feng-ye/followers","following_url":"https://api.github.com/users/feng-ye/following{/other_user}","gists_url":"https://api.github.com/users/feng-ye/gists{/gist_id}","starred_url":"https://api.github.com/users/feng-ye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feng-ye/subscriptions","organizations_url":"https://api.github.com/users/feng-ye/orgs","repos_url":"https://api.github.com/users/feng-ye/repos","events_url":"https://api.github.com/users/feng-ye/events{/privacy}","received_events_url":"https://api.github.com/users/feng-ye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-24T10:02:53Z","updated_at":"2015-11-25T01:04:47Z","closed_at":null,"body":"LIBSUFFIXES is wrong in engine/SCons/Platform/msys.py\r\n\r\n    env['LIBSUFFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX', '$IMPLIBPREFIX' ]\r\n\r\nshould be\r\n\r\n    env['LIBSUFFIXES'] = [ '$LIBSURFIX', '$SHLIBSURFIX', '$IMPLIBSURFIX' ]"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/159452724","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/394#issuecomment-159452724","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/394","id":159452724,"user":{"login":"feng-ye","id":314167,"avatar_url":"https://avatars.githubusercontent.com/u/314167?v=3","gravatar_id":"","url":"https://api.github.com/users/feng-ye","html_url":"https://github.com/feng-ye","followers_url":"https://api.github.com/users/feng-ye/followers","following_url":"https://api.github.com/users/feng-ye/following{/other_user}","gists_url":"https://api.github.com/users/feng-ye/gists{/gist_id}","starred_url":"https://api.github.com/users/feng-ye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feng-ye/subscriptions","organizations_url":"https://api.github.com/users/feng-ye/orgs","repos_url":"https://api.github.com/users/feng-ye/repos","events_url":"https://api.github.com/users/feng-ye/events{/privacy}","received_events_url":"https://api.github.com/users/feng-ye/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T01:04:47Z","updated_at":"2015-11-25T01:04:47Z","body":"A simple test case:\r\n\r\nSConstruct:\r\n````python\r\nProgram('test', 'main.c', LIBS=['foo'], LIBPATH=['.'])\r\nLibrary('foo', 'foo.c')\r\n````\r\nfoo.c\r\n````c\r\nint foo() { return 0; }\r\n````\r\nmain.c\r\n````c\r\nextern int foo();\r\nint main() { return foo(); }\r\n````\r\nWhen I run `scons --debug=findlibs test.exe`, libfoo is not built as a dependency.\r\nThe output is:\r\n````\r\nscons: Reading SConscript files ...\r\nscons: done reading SConscript files.\r\nscons: Building targets ...\r\n  findlibs: looking for 'libfoolib' in '.' ...\r\n  findlibs: looking for 'msys-foolib' in '.' ...\r\n  findlibs: looking for 'libfoomsys-' in '.' ...\r\n  findlibs: looking for 'msys-foomsys-' in '.' ...\r\ngcc -o main.o -c main.c\r\ngcc -o test.exe -Wl,-no-undefined main.o -L. -lfoo\r\nC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lfoo\r\ncollect2.exe: error: ld returned 1 exit status\r\nscons: *** [test.exe] Error 1\r\nscons: building terminated because of errors.\r\n````\r\nAfter applying the patch:\r\n````\r\nscons: Reading SConscript files ...\r\nscons: done reading SConscript files.\r\nscons: Building targets ...\r\n  findlibs: looking for 'libfoo.a' in '.' ...\r\n  findlibs: ... FOUND 'libfoo.a' in '.'\r\n  findlibs: looking for 'msys-foo.a' in '.' ...\r\n  findlibs: looking for 'libfoo.dll' in '.' ...\r\n  findlibs: looking for 'msys-foo.dll' in '.' ...\r\n  findlibs: looking for 'libfoo.dll.a' in '.' ...\r\n  findlibs: looking for 'msys-foo.dll.a' in '.' ...\r\ngcc -o foo.o -c foo.c\r\nar rc libfoo.a foo.o\r\nranlib libfoo.a\r\ngcc -o test.exe -Wl,-no-undefined main.o -L. -lfoo\r\nscons: done building targets.\r\n````"}}