{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platformio/issues/594","repository_url":"https://api.github.com/repos/platformio/platformio","labels_url":"https://api.github.com/repos/platformio/platformio/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio/issues/594/comments","events_url":"https://api.github.com/repos/platformio/platformio/issues/594/events","html_url":"https://github.com/platformio/platformio/issues/594","id":142989759,"number":594,"title":"Flags specified in platformio.ini build_flags variable not applied to all necessary steps in the build process","user":{"login":"apvanzanten","id":2299201,"avatar_url":"https://avatars.githubusercontent.com/u/2299201?v=3","gravatar_id":"","url":"https://api.github.com/users/apvanzanten","html_url":"https://github.com/apvanzanten","followers_url":"https://api.github.com/users/apvanzanten/followers","following_url":"https://api.github.com/users/apvanzanten/following{/other_user}","gists_url":"https://api.github.com/users/apvanzanten/gists{/gist_id}","starred_url":"https://api.github.com/users/apvanzanten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apvanzanten/subscriptions","organizations_url":"https://api.github.com/users/apvanzanten/orgs","repos_url":"https://api.github.com/users/apvanzanten/repos","events_url":"https://api.github.com/users/apvanzanten/events{/privacy}","received_events_url":"https://api.github.com/users/apvanzanten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-23T15:18:39Z","updated_at":"2016-03-23T15:47:47Z","closed_at":null,"body":"### Configuration\r\n\r\n**PlatformIO version 2.8.6**\r\n\r\n**Platform: ststm32 - disco_f407vg**\r\n\r\n### Description of problem\r\nWhen supplying platformio with flags via the build_flags variable in the platformio.ini file, these flags are applied only to the compilation of the user-supplied source (src and lib folder) but not in the final linkage. \r\n\r\n#### Steps to Reproduce\r\nI have set up a test case [here](https://github.com/apvanzanten/platformioCompilerFlagsBugTestcase) on github, the readme on it explains how to use it (it is very simple, basically just clone and platformio run). \r\n\r\n### Actual Results\r\nThe test case tries to build using flags for hardware floating point, which are applied as expected on the compilation of the main.c file, but then not anywhere else in the build process, this causes problems when the linker tries to link the hard-float compiled main.o to the soft-float compiled firmware.elf.\r\n\r\n### Expected Results\r\nFor the build flags to be applied properly and the project to build without errors.\r\n"},"comment":{"url":"https://api.github.com/repos/platformio/platformio/issues/comments/200403308","html_url":"https://github.com/platformio/platformio/issues/594#issuecomment-200403308","issue_url":"https://api.github.com/repos/platformio/platformio/issues/594","id":200403308,"user":{"login":"apvanzanten","id":2299201,"avatar_url":"https://avatars.githubusercontent.com/u/2299201?v=3","gravatar_id":"","url":"https://api.github.com/users/apvanzanten","html_url":"https://github.com/apvanzanten","followers_url":"https://api.github.com/users/apvanzanten/followers","following_url":"https://api.github.com/users/apvanzanten/following{/other_user}","gists_url":"https://api.github.com/users/apvanzanten/gists{/gist_id}","starred_url":"https://api.github.com/users/apvanzanten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apvanzanten/subscriptions","organizations_url":"https://api.github.com/users/apvanzanten/orgs","repos_url":"https://api.github.com/users/apvanzanten/repos","events_url":"https://api.github.com/users/apvanzanten/events{/privacy}","received_events_url":"https://api.github.com/users/apvanzanten/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T15:47:47Z","updated_at":"2016-03-23T15:47:47Z","body":"I am currently using spl. However for the test case I configured it for mbed because that was the default and because it gave a cleaner and simpler test case. \r\n\r\nI slightly modified the test case so it works for spl and put it in a [separate branch of my repo](https://github.com/apvanzanten/platformioCompilerFlagsBugTestcase/tree/splCase)."}}