summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c
index 42c8d5aad..fd4174756 100644
--- a/extra/gcc-uClibc/gcc-uClibc.c
+++ b/extra/gcc-uClibc/gcc-uClibc.c
@@ -206,6 +206,9 @@ int main(int argc, char **argv)
gcc_argv[i++] = "-lc";
gcc_argv[i++] = GCC_LIB;
}
+ if (!use_static_linking) {
+ gcc_argv[i++] = DYNAMIC_LINKER;
+ }
}
gcc_argv[i++] = NULL;