Avoid using findPS/packString where simple string matching will do.
import Maybe
import PackedString
-import MatchPS
-----------------------------------------------------------------------------
-- genPipeline
++ pkg_lib_path_opts
++ pkg_lib_opts
++ pkg_extra_ld_opts
- ++ (case findPS (packString (concat extra_ld_opts)) (packString "--def") of
- Nothing -> [ "--export-all" ]
- Just _ -> [ "" ])
+ ++ (if "--def" `elem` (concatMap words extra_ld_opts)
+ then [ "" ]
+ else [ "--export-all" ])
++ extra_ld_opts
))