{"action":"created","issue":{"url":"https://api.github.com/repos/Corvusoft/restbed/issues/135","repository_url":"https://api.github.com/repos/Corvusoft/restbed","labels_url":"https://api.github.com/repos/Corvusoft/restbed/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/Corvusoft/restbed/issues/135/comments","events_url":"https://api.github.com/repos/Corvusoft/restbed/issues/135/events","html_url":"https://github.com/Corvusoft/restbed/issues/135","id":173684320,"number":135,"title":"Building with Clang on Ubuntu","user":{"login":"nickjhathaway","id":2828038,"avatar_url":"https://avatars.githubusercontent.com/u/2828038?v=3","gravatar_id":"","url":"https://api.github.com/users/nickjhathaway","html_url":"https://github.com/nickjhathaway","followers_url":"https://api.github.com/users/nickjhathaway/followers","following_url":"https://api.github.com/users/nickjhathaway/following{/other_user}","gists_url":"https://api.github.com/users/nickjhathaway/gists{/gist_id}","starred_url":"https://api.github.com/users/nickjhathaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickjhathaway/subscriptions","organizations_url":"https://api.github.com/users/nickjhathaway/orgs","repos_url":"https://api.github.com/users/nickjhathaway/repos","events_url":"https://api.github.com/users/nickjhathaway/events{/privacy}","received_events_url":"https://api.github.com/users/nickjhathaway/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Corvusoft/restbed/labels/build%20issue","name":"build issue","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T02:21:14Z","updated_at":"2016-09-15T00:47:24Z","closed_at":null,"body":"Hi,\r\nI ran into some trouble when trying to build restbed on Ubuntu 14.04 with clang++-3.8 and I figured out it's because in the cmake file cmake/build_configuration.cmake in tag 4.0 which is now cmake/configuration.cmake in master, there is a check on line 34 for clang that automatically adds the compile flag \"-stdlib=libc++\" but using clang doesn't always mean libc++ will be used and this especially true of ubuntu where apt-get install clang-3.8 doesn't even install libc++ and clang uses libstdc++ by default.  \r\n\r\nSo the build fails on Ubuntu since libc++ can't be found, I tried to solve the issue by adding \"-stdlib=libstdc++\" to environmental CXXFLAGS but since \"-stdlib=libc++\" is added after environmental CXXFLAGS, \"-stdlib=libc++\" is honored and not \"-stdlib=libstdc++\".  \r\n\r\nSo it would be great if either just the default compiler library that is clang is set up to use is allowed (which would be done by just removing the addition of -stdlib=libc++ on line 34) or if the order on line 34 could be reversed so it would be \r\n```\r\nset( CMAKE_CXX_FLAGS \"-stdlib=libc++ ${CMAKE_CXX_FLAGS}\" )\r\n```\r\ninstead to make it easier to support clang that is using libstdc++ \r\n\r\nThanks!\r\nNick\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Corvusoft/restbed/issues/comments/247201175","html_url":"https://github.com/Corvusoft/restbed/issues/135#issuecomment-247201175","issue_url":"https://api.github.com/repos/Corvusoft/restbed/issues/135","id":247201175,"user":{"login":"ben-crowhurst","id":3715287,"avatar_url":"https://avatars.githubusercontent.com/u/3715287?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-crowhurst","html_url":"https://github.com/ben-crowhurst","followers_url":"https://api.github.com/users/ben-crowhurst/followers","following_url":"https://api.github.com/users/ben-crowhurst/following{/other_user}","gists_url":"https://api.github.com/users/ben-crowhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-crowhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-crowhurst/subscriptions","organizations_url":"https://api.github.com/users/ben-crowhurst/orgs","repos_url":"https://api.github.com/users/ben-crowhurst/repos","events_url":"https://api.github.com/users/ben-crowhurst/events{/privacy}","received_events_url":"https://api.github.com/users/ben-crowhurst/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T00:47:24Z","updated_at":"2016-09-15T00:47:24Z","body":"Nick, I've opted to remove ```-stdlib=libc++``` altogether.   When we first started developing Restbed C++11 support was not as broad as is it today.\r\n\r\nI love deleting code/config, less is more :feelsgood: "}}
{"actor":{"display_login":"ben-crowhurst"}}