From ad8e442f3f11e2b807a064237825f3ce96b76e25 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 4 Dec 2013 16:19:07 +0000 Subject: make global_argc and global_argv globally visible for position independent code on 64 bit linux, otherwise ArgEnv can't access these variables --- scon.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scon.c') 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 -- cgit v1.2.3