Ticket #3682: ghc-6.12-so-executable.patch

File ghc-6.12-so-executable.patch, 1.3 KB (added by juhpetersen, 5 years ago)

simple (untested) patch which should fix this I think

  • ghc-6.12.0.20091121/libraries/Cabal/Distribution/Simple/GHC.hs

    diff -u ghc-6.12.0.20091121/libraries/Cabal/Distribution/Simple/GHC.hs\~ ghc-6.12.0.20091121/libraries/Cabal/Distribution/Simple/GHC.hs
    old new  
    886886            copy src dst n = do 
    887887              createDirectoryIfMissingVerbose verbosity True dst 
    888888              installOrdinaryFile verbosity (src </> n) (dst </> n) 
     889            copyShared src dst n = do 
     890              createDirectoryIfMissingVerbose verbosity True dst 
     891              installExecutableFile verbosity (src </> n) (dst </> n) 
    889892            copyModuleFiles ext = 
    890893              findModuleFiles [builtDir] [ext] (libModules lib) 
    891894                >>= installOrdinaryFiles verbosity targetDir 
     
    897900        ifVanilla $ copy builtDir targetDir vanillaLibName 
    898901        ifProf    $ copy builtDir targetDir profileLibName 
    899902        ifGHCi    $ copy builtDir targetDir ghciLibName 
    900         ifShared  $ copy builtDir dynlibTargetDir sharedLibName 
     903        ifShared  $ copyShared builtDir dynlibTargetDir sharedLibName 
    901904 
    902905        -- run ranlib if necessary: 
    903906        ifVanilla $ updateLibArchive verbosity lbi