debugged computation of the file list for the base (non-profiling) package
#
cat >mk/build.mk <<END
GhcLibWays = p
-SRC_HAPPY_OPTS += -agc
+#SRC_HAPPY_OPTS += -agc # useful from Happy 1.7 onwards
+SRC_HAPPY_OPTS += -c
END
# generate the file list for lib/ _excluding_ all files needed for profiling
# only
#
-ls -R %{prefix}/lib/* | grep -v -e ":$" -e "^$" -e ".p_hi" -e "_p.a"\
- >rpm-noprof-lib-files
+find $RPM_BUILD_ROOT%{prefix}/lib\
+ ! -type d ! -name '*.p_hi' ! -name '*_p.a' -print >rpm-noprof-lib-files
%clean
rm -rf $RPM_BUILD_ROOT