{"action":"closed","issue":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/314","repository_url":"https://api.github.com/repos/clash-lang/clash-compiler","labels_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/314/comments","events_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/314/events","html_url":"https://github.com/clash-lang/clash-compiler/issues/314","id":319441797,"number":314,"title":"Hard-coded -dynamic flag breaks build on openSUSE Linux","user":{"login":"peti","id":28323,"avatar_url":"https://avatars3.githubusercontent.com/u/28323?v=4","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-02T07:39:00Z","updated_at":"2018-05-18T13:48:42Z","closed_at":"2018-05-18T13:48:42Z","author_association":"NONE","body":"I just had to [patch the build of `clash-ghc` for openSUSE Linux/x86-64 with GHC 8.4.2](https://github.com/opensuse-haskell/configuration/commit/8843294a252be6e912d51492c709f6399205bd95), because the hard-coded use of `-dynamic` in the Cabal file broke our post-processing checks:\r\n\r\n~~~~\r\n[  412s] calling /usr/lib/rpm/brp-suse.d/brp-35-rpath\r\n[  412s] ERROR: RPATH \"/home/abuild/rpmbuild/BUILD/clash-ghc-0.99/dist/build\" on /home/abuild/rpmbuild/BUILDROOT/clash-ghc-0.99-2.1.x86_64/usr/bin/clash is not allowed\r\n[  413s] ERROR: RPATH \"/home/abuild/rpmbuild/BUILD/clash-ghc-0.99/dist/build\" on /home/abuild/rpmbuild/BUILDROOT/clash-ghc-0.99-2.1.x86_64/usr/bin/clashi is not allowed\r\n~~~~\r\n\r\nWhat happens is that `ghc` makes bad decisions about setting certain RPATH entries in the generated executables. It ought to be *Cabal* making those decisions: setting the compiler flag `-dynamic` is not the proper way to enable dynamic linking.\r\n\r\nIs there a particular reason why this flag is hard-coded in the Cabal file?"}}
{"actor":{"display_login":"christiaanb"}}