From 90ee00324077acfeec88c94f3f51a5a6ef132c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 18 Apr 2016 10:24:28 +0200 Subject: [PATCH] gcc: fix mingw build after closure-size merge This may also (help to) fix also other less usual configurations. --- pkgs/development/compilers/gcc/builder.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/builder.sh b/pkgs/development/compilers/gcc/builder.sh index 3190c5f5739f..5b206a63daa1 100644 --- a/pkgs/development/compilers/gcc/builder.sh +++ b/pkgs/development/compilers/gcc/builder.sh @@ -210,10 +210,14 @@ preInstall() { postInstall() { + mkdir -p "$lib" # some configs don't have anything to put into $lib + # Move runtime libraries to $lib. moveToOutput "lib/lib*.so*" "$lib" moveToOutput "lib/lib*.la" "$lib" - ln -s lib "$lib/lib64" # for *.la + if [ -d "$lib/lib" ]; then + ln -s lib "$lib/lib64" # for *.la + fi moveToOutput "share/gcc-*/python" "$lib" for i in "$lib"/lib/*.{la,py}; do