summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-15 01:10:48 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-15 01:10:48 +0000
commit3d15bf2ee6d3ef76f92e27cdacae3bb807244614 (patch)
tree5f3eb50be85b91b8867199334d5c2a6d215908c3 /extra/gcc-uClibc
parentfad967c768d96842cb1355a060a4ae2d127f775a (diff)
Ronald Wahl writes:
since uclibc-0.9.16 I have to specify -fpic during _link_-time or else I get an error from the dynamic linker when I load shared objects. Patch is appended.
Diffstat (limited to 'extra/gcc-uClibc')
-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 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) {