summaryrefslogtreecommitdiff
path: root/scon.c
diff options
context:
space:
mode:
authorJohn van Groningen2013-12-04 16:19:07 +0000
committerJohn van Groningen2013-12-04 16:19:07 +0000
commitad8e442f3f11e2b807a064237825f3ce96b76e25 (patch)
treef9da2576b065d892b4a8f73121b69eac3e8608f0 /scon.c
parentsupport position independent code on 64 bit linux, (diff)
make global_argc and global_argv globally visible
for position independent code on 64 bit linux, otherwise ArgEnv can't access these variables
Diffstat (limited to 'scon.c')
-rw-r--r--scon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scon.c b/scon.c
index e8dcc4e..ce68aa9 100644
--- a/scon.c
+++ b/scon.c
@@ -752,7 +752,13 @@ static long parse_integer (register char *s)
}
#endif
+#ifdef PIC
+__attribute__ ((visibility("default")))
+#endif
int global_argc;
+#ifdef PIC
+__attribute__ ((visibility("default")))
+#endif
char **global_argv;
#ifdef TIME_PROFILE