diff options
-rw-r--r-- | pkgs/stdenv/generic/setup.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 27c1d37df25f..0c1e3e736800 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -580,7 +580,7 @@ configurePhase() { done fi - if [ -z "$dontAddPrefix" ]; then + if [ -n "${setOutputConfigureFlags-1}" ]; then local _man="$man" # Put programs in the "bin" output. @@ -606,7 +606,9 @@ configurePhase() { configureFlags="--includedir=$dev/include $configureFlags" installFlags="pkgconfigdir=$dev/lib/pkgconfig m4datadir=$dev/share/aclocal aclocaldir=$dev/share/aclocal $installFlags" fi + fi + if [ -z "$dontAddPrefix" ]; then configureFlags="${prefixKey:---prefix=}$prefix $configureFlags" fi |