propellor spin
This commit is contained in:
parent
dd08ae61db
commit
ba8a259f24
|
@ -29,10 +29,15 @@ setup propellorbin dest = do
|
||||||
let linker = (dest ++) $
|
let linker = (dest ++) $
|
||||||
fromMaybe (error "cannot find ld-linux linker") $
|
fromMaybe (error "cannot find ld-linux linker") $
|
||||||
headMaybe $ filter ("ld-linux" `isInfixOf`) libs'
|
headMaybe $ filter ("ld-linux" `isInfixOf`) libs'
|
||||||
|
let gconvdir = (dest ++) $ parentDir $
|
||||||
|
fromMaybe (error "cannot find gconv directory") $
|
||||||
|
headMaybe $ filter ("/gconv/" `isInfixOf`) glibclibs
|
||||||
let linkerparams = ["--library-path", intercalate ":" libdirs ]
|
let linkerparams = ["--library-path", intercalate ":" libdirs ]
|
||||||
let shim = file propellorbin dest
|
let shim = file propellorbin dest
|
||||||
writeFile shim $ unlines
|
writeFile shim $ unlines
|
||||||
[ "#!/bin/sh"
|
[ "#!/bin/sh"
|
||||||
|
, "set GCONV_PATH=" ++ shellEscape gconvdir
|
||||||
|
, "export GCONV_PATH"
|
||||||
, "exec " ++ unwords (map shellEscape $ linker : linkerparams) ++
|
, "exec " ++ unwords (map shellEscape $ linker : linkerparams) ++
|
||||||
" " ++ shellEscape propellorbin ++ " \"$@\""
|
" " ++ shellEscape propellorbin ++ " \"$@\""
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue