diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/gcc-uClibc/gcc-uClibc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 3ef156862..8b7f53e7d 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -277,6 +277,9 @@ int main(int argc, char **argv) if (strstr(argv[i],static_linking) != NULL) { use_static_linking = 1; } + if (strcmp("-shared",argv[i]) == 0) { + use_pic = 1; + } break; case 'W': /* -static could be passed directly to ld */ if (strncmp("-Wl,",argv[i],4) == 0) { |