Commit fbf59244b87852ffac7c3ab6a6d57b3a6326f37c

Authored by bellard
1 parent fa36761d

static build fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1005 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/main.c
... ... @@ -43,7 +43,7 @@ const char interp[] __attribute__((section(".interp"))) = "/lib/ld-linux.so.2";
43 43  
44 44 /* for recent libc, we add these dummy symbols which are not declared
45 45 when generating a linked object (bug in ld ?) */
46   -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
  46 +#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(CONFIG_STATIC)
47 47 long __preinit_array_start[0];
48 48 long __preinit_array_end[0];
49 49 long __init_array_start[0];
... ...