{"action":"created","issue":{"url":"https://api.github.com/repos/cburstedde/p4est/issues/16","repository_url":"https://api.github.com/repos/cburstedde/p4est","labels_url":"https://api.github.com/repos/cburstedde/p4est/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cburstedde/p4est/issues/16/comments","events_url":"https://api.github.com/repos/cburstedde/p4est/issues/16/events","html_url":"https://github.com/cburstedde/p4est/issues/16","id":174616545,"number":16,"title":"Explicitly link against external libsc if `-with-sc=...` is specified","user":{"login":"tamiko","id":3432917,"avatar_url":"https://avatars.githubusercontent.com/u/3432917?v=3","gravatar_id":"","url":"https://api.github.com/users/tamiko","html_url":"https://github.com/tamiko","followers_url":"https://api.github.com/users/tamiko/followers","following_url":"https://api.github.com/users/tamiko/following{/other_user}","gists_url":"https://api.github.com/users/tamiko/gists{/gist_id}","starred_url":"https://api.github.com/users/tamiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamiko/subscriptions","organizations_url":"https://api.github.com/users/tamiko/orgs","repos_url":"https://api.github.com/users/tamiko/repos","events_url":"https://api.github.com/users/tamiko/events{/privacy}","received_events_url":"https://api.github.com/users/tamiko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T20:21:22Z","updated_at":"2016-09-02T13:03:58Z","closed_at":null,"body":"I have written two independent ebuilds for Gentoo (maintained in the Gentoo science overlay [1,2]):\r\n\r\nI use the `--with-sc=` configure switch in p4est to build against external libsc, but the system libsc is not registered as a shared object dependency. Thus, in order to avoid underlinkage I have to manually specify\r\n```\r\nLDFLAGS=\"${LDFLAGS} -lsc\"\r\n```\r\n\r\nCould this be added to the build system?\r\n\r\n[1] https://github.com/gentoo-science/sci/tree/master/sci-libs/libsc\r\n[2] https://github.com/gentoo-science/sci/tree/master/sci-libs/p4est"},"comment":{"url":"https://api.github.com/repos/cburstedde/p4est/issues/comments/244368942","html_url":"https://github.com/cburstedde/p4est/issues/16#issuecomment-244368942","issue_url":"https://api.github.com/repos/cburstedde/p4est/issues/16","id":244368942,"user":{"login":"cburstedde","id":109908,"avatar_url":"https://avatars.githubusercontent.com/u/109908?v=3","gravatar_id":"","url":"https://api.github.com/users/cburstedde","html_url":"https://github.com/cburstedde","followers_url":"https://api.github.com/users/cburstedde/followers","following_url":"https://api.github.com/users/cburstedde/following{/other_user}","gists_url":"https://api.github.com/users/cburstedde/gists{/gist_id}","starred_url":"https://api.github.com/users/cburstedde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburstedde/subscriptions","organizations_url":"https://api.github.com/users/cburstedde/orgs","repos_url":"https://api.github.com/users/cburstedde/repos","events_url":"https://api.github.com/users/cburstedde/events{/privacy}","received_events_url":"https://api.github.com/users/cburstedde/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T13:03:57Z","updated_at":"2016-09-02T13:03:57Z","body":"> I have written two independent ebuilds for Gentoo (maintained in the Gentoo science overlay [1,2]):\n> \n> I use the `--with-sc=` configure switch in p4est to build against external libsc, but my system libsc is not registered as a shared object dependency. Thus, in order to avoid underlinkage I have to manually specify\n> ```\n> LDFLAGS=\"${LDFLAGS} -lsc\"\n> ```\n> \n> Could this be added to the build system?\n\nThanks for maintaining these packages.\n\nI do the same on my 12.04 lts ubuntu installation it works out.\nSee sc/config/sc_package.m4:\n\n  $1_$3_LDADD=\"$$1_$3_DIR/lib/lib$4.la\"\n\nso p4est grabs the sc .la file.  In my make installed libsc I find\n\nlibsc-1.1.265-1247.so\nlibsc-1.1.266-26c3.so\nlibsc.a\nlibsc.la\nlibsc.so ->libsc-1.1.266-26c3.so\n\nand all the p4est examples build.\n\nAlso, take a look at the installed Makefile.p4est.mk.  If users include\nthis in their custom (non-autotools) Makefile, it should grab the sc\ndependencies automatically.\n\nWhat would be the right fix for Gentoo?  Do we need one?\n\n> [1] https://github.com/gentoo-science/sci/tree/master/sci-libs/libsc\n> [2] https://github.com/gentoo-science/sci/tree/master/sci-libs/p4est\n"}}
{"actor":{"display_login":"cburstedde"}}