about summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc-4.4/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/gcc-4.4/builder.sh')
-rw-r--r--pkgs/development/compilers/gcc-4.4/builder.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc-4.4/builder.sh b/pkgs/development/compilers/gcc-4.4/builder.sh
index dc96adc982df..b3436e447dcd 100644
--- a/pkgs/development/compilers/gcc-4.4/builder.sh
+++ b/pkgs/development/compilers/gcc-4.4/builder.sh
@@ -9,6 +9,11 @@ mkdir $NIX_FIXINC_DUMMY
 # Thing.
 export CPP="gcc -E"
 
+if test "$staticCompiler" = "1"; then
+    EXTRA_LDFLAGS="-static"
+else
+    EXTRA_LDFLAGS=""
+fi
 
 if test "$noSysDirs" = "1"; then