ECL: wrap to ensure succesful linking in ECL's runtime
This commit is contained in:
		
							parent
							
								
									1451bb8a18
								
							
						
					
					
						commit
						aaa9e85ae6
					
				@ -1,6 +1,6 @@
 | 
			
		||||
{stdenv, fetchurl
 | 
			
		||||
, libtool, autoconf, automake
 | 
			
		||||
, gmp, mpfr, libffi
 | 
			
		||||
, gmp, mpfr, libffi, makeWrapper
 | 
			
		||||
, noUnicode ? false, 
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
@ -14,7 +14,7 @@ let
 | 
			
		||||
    sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
 | 
			
		||||
  };
 | 
			
		||||
  buildInputs = [
 | 
			
		||||
    libtool autoconf automake
 | 
			
		||||
    libtool autoconf automake makeWrapper
 | 
			
		||||
  ];
 | 
			
		||||
  propagatedBuildInputs = [
 | 
			
		||||
    libffi gmp mpfr
 | 
			
		||||
@ -37,6 +37,9 @@ stdenv.mkDerivation {
 | 
			
		||||
    ;
 | 
			
		||||
  postInstall = ''
 | 
			
		||||
    sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
 | 
			
		||||
    wrapProgram "$out/bin/ecl" \
 | 
			
		||||
      --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 = {
 | 
			
		||||
    inherit (s) version;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user