{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/1282","repository_url":"https://api.github.com/repos/ldc-developers/ldc","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1282/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1282/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1282/events","html_url":"https://github.com/ldc-developers/ldc/issues/1282","id":131940888,"number":1282,"title":"Using/building both static and shared library","user":{"login":"Dicebot","id":1132234,"avatar_url":"https://avatars.githubusercontent.com/u/1132234?v=3","gravatar_id":"","url":"https://api.github.com/users/Dicebot","html_url":"https://github.com/Dicebot","followers_url":"https://api.github.com/users/Dicebot/followers","following_url":"https://api.github.com/users/Dicebot/following{/other_user}","gists_url":"https://api.github.com/users/Dicebot/gists{/gist_id}","starred_url":"https://api.github.com/users/Dicebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dicebot/subscriptions","organizations_url":"https://api.github.com/users/Dicebot/orgs","repos_url":"https://api.github.com/users/Dicebot/repos","events_url":"https://api.github.com/users/Dicebot/events{/privacy}","received_events_url":"https://api.github.com/users/Dicebot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-07T06:04:12Z","updated_at":"2016-02-14T13:24:16Z","closed_at":null,"body":"Recently I got a bug report for ldc Arch package which indicates that I need to provide a static library after all: https://bugs.archlinux.org/task/48028\r\n\r\nAnd of course removing shared one now isn't something I'd be happy about :) So I tried to package both but can't see any obvious way to configure which one gets used. With dmd default is static and shared one can picked via `-defaultlib=libphobos2.so` - but `-defaultlib=libphobos-ldc2.a` doesn't work. Is it possible with LDC and if yes, how?"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/183888571","html_url":"https://github.com/ldc-developers/ldc/issues/1282#issuecomment-183888571","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1282","id":183888571,"user":{"login":"russel","id":24420,"avatar_url":"https://avatars.githubusercontent.com/u/24420?v=3","gravatar_id":"","url":"https://api.github.com/users/russel","html_url":"https://github.com/russel","followers_url":"https://api.github.com/users/russel/followers","following_url":"https://api.github.com/users/russel/following{/other_user}","gists_url":"https://api.github.com/users/russel/gists{/gist_id}","starred_url":"https://api.github.com/users/russel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russel/subscriptions","organizations_url":"https://api.github.com/users/russel/orgs","repos_url":"https://api.github.com/users/russel/repos","events_url":"https://api.github.com/users/russel/events{/privacy}","received_events_url":"https://api.github.com/users/russel/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T13:24:15Z","updated_at":"2016-02-14T13:24:15Z","body":"In the file CMakeCache.txt a few lines from the top is:\r\n\r\n//Whether to build the runtime as a shared library\r\nBUILD_SHARED_LIBS:BOOL=ON\r\n\r\nSwitch this from ON to OFF causes static libraries to be built rather than dynamic ones.\r\n\r\nWhat I think is required is to build both in one job."}}