{"action":"created","issue":{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/85","labels_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/85/comments","events_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/85/events","html_url":"https://github.com/ALPSCore/ALPSCore/issues/85","id":58085073,"number":85,"title":"fPIC in compiler flags","user":{"login":"aeantipov","id":1170855,"avatar_url":"https://avatars.githubusercontent.com/u/1170855?v=3","gravatar_id":"","url":"https://api.github.com/users/aeantipov","html_url":"https://github.com/aeantipov","followers_url":"https://api.github.com/users/aeantipov/followers","following_url":"https://api.github.com/users/aeantipov/following{/other_user}","gists_url":"https://api.github.com/users/aeantipov/gists{/gist_id}","starred_url":"https://api.github.com/users/aeantipov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeantipov/subscriptions","organizations_url":"https://api.github.com/users/aeantipov/orgs","repos_url":"https://api.github.com/users/aeantipov/repos","events_url":"https://api.github.com/users/aeantipov/events{/privacy}","received_events_url":"https://api.github.com/users/aeantipov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-18T15:49:01Z","updated_at":"2015-02-18T23:53:37Z","closed_at":"2015-02-18T23:53:37Z","body":"Do you think it makes sense to add \"-fPIC\" to the default compilation flags when building static libraries is required? It's a typical problem, that non fPIC code can't be linked into a dynamic library, which requires having all of the dependencies static. \r\nOn the other hand, it's a forced option, that some advanced users might like to disable. We could add it as an optional flag with default being having -fPIC. \r\nSee http://stackoverflow.com/questions/5311515/gcc-fpic-option \r\n"},"comment":{"url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/comments/74974589","html_url":"https://github.com/ALPSCore/ALPSCore/issues/85#issuecomment-74974589","issue_url":"https://api.github.com/repos/ALPSCore/ALPSCore/issues/85","id":74974589,"user":{"login":"egull","id":7191877,"avatar_url":"https://avatars.githubusercontent.com/u/7191877?v=3","gravatar_id":"","url":"https://api.github.com/users/egull","html_url":"https://github.com/egull","followers_url":"https://api.github.com/users/egull/followers","following_url":"https://api.github.com/users/egull/following{/other_user}","gists_url":"https://api.github.com/users/egull/gists{/gist_id}","starred_url":"https://api.github.com/users/egull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egull/subscriptions","organizations_url":"https://api.github.com/users/egull/orgs","repos_url":"https://api.github.com/users/egull/repos","events_url":"https://api.github.com/users/egull/events{/privacy}","received_events_url":"https://api.github.com/users/egull/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T23:53:37Z","updated_at":"2015-02-18T23:53:37Z","body":"If we keep running into that problem or need it for the packages let's add it, otherwise an advanced user can specify it if they need it. Default flags is not the right place to add it, it may break on systems that don't have shared library support... we'd need to test that."}}