racket: use --enable-useprefix configure flag.

This is to fix a regression in upstream Racket packaging, the upstream
bug tracking this is here:

  https://github.com/racket/racket/issues/3046

When the bug is fixed this workaround will be unnecessary.
This commit is contained in:
Asumu Takikawa 2020-04-15 15:34:58 -07:00 committed by Asumu Takikawa
parent 2da253a7de
commit b271255ede

View File

@ -82,7 +82,10 @@ stdenv.mkDerivation rec {
'';
shared = if stdenv.isDarwin then "dylib" else "shared";
configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ]
configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool"
# The following flag is a temporary workaround for an upstream bug:
# https://github.com/racket/racket/issues/3046
"--enable-useprefix" ]
++ stdenv.lib.optional disableDocs [ "--disable-docs" ]
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ];