Merge pull request #132269 from collares/ecl-boehmgc
ecl: make sure boehmgc is available to gcc/linker
This commit is contained in:
commit
6300316079
1 changed files with 14 additions and 10 deletions
|
@ -47,20 +47,24 @@ stdenv.mkDerivation {
|
||||||
(if threadSupport then "--enable-threads" else "--disable-threads")
|
(if threadSupport then "--enable-threads" else "--disable-threads")
|
||||||
"--with-gmp-prefix=${gmp.dev}"
|
"--with-gmp-prefix=${gmp.dev}"
|
||||||
"--with-libffi-prefix=${libffi.dev}"
|
"--with-libffi-prefix=${libffi.dev}"
|
||||||
]
|
]
|
||||||
++
|
++
|
||||||
(lib.optional (! noUnicode)
|
(lib.optional useBoehmgc
|
||||||
"--enable-unicode")
|
"--with-libgc-prefix=${boehmgc.dev}")
|
||||||
;
|
++
|
||||||
|
(lib.optional (! noUnicode)
|
||||||
|
"--enable-unicode")
|
||||||
|
;
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = let
|
||||||
|
ldArgs = lib.strings.concatMapStringsSep " "
|
||||||
|
(l: ''--prefix NIX_LDFLAGS ' ' "-L${l.lib or l.out or l}/lib"'')
|
||||||
|
([ gmp libffi ] ++ lib.optional useBoehmgc boehmgc);
|
||||||
|
in ''
|
||||||
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
||||||
wrapProgram "$out/bin/ecl" \
|
wrapProgram "$out/bin/ecl" --prefix PATH ':' "${gcc}/bin" ${ldArgs}
|
||||||
--prefix PATH ':' "${gcc}/bin" \
|
|
||||||
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
|
|
||||||
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue