https://bugzilla.redhat.com/show_bug.cgi?id=863499
--- Comment #6 from Jens Petersen petersen@redhat.com --- So actually I had the same problem when moving "back" to monolithic haskell-platform.
Anyway I think you can fix it like this:
BuildRequires: chrpath
: :
%install
:
PROG=%{buildroot}%{_bindir}/%name RPATH=$(chrpath $PROG| sed -e "s!^$PROG: RPATH=!!") case $RPATH in *$PWD*) NEWRPATH=$(echo $RPATH | sed -e "s!$PWD!%{ghclibdir}!g" -e "s!/dist/build!!g") chrpath -r $NEWRPATH $PROG ;; esac
(taken from haskell-platform.spec though untested here).
Then you could drop the patch and benefit from the shared lib.
In the long term I would like to see all dynamically linked binlib haskell packages doing this.