]> git.proxmox.com Git - mirror_qemu.git/commitdiff
static build fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 10 Jul 2004 18:18:19 +0000 (18:18 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 10 Jul 2004 18:18:19 +0000 (18:18 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1005 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/main.c

index 00afaafa756f7bf0d6ff38e18af65003731a2824..bd2445252dd4e2c2b52b0fec7f14187c524d845f 100644 (file)
@@ -43,7 +43,7 @@ const char interp[] __attribute__((section(".interp"))) = "/lib/ld-linux.so.2";
 
 /* for recent libc, we add these dummy symbols which are not declared
    when generating a linked object (bug in ld ?) */
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
+#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(CONFIG_STATIC)
 long __preinit_array_start[0];
 long __preinit_array_end[0];
 long __init_array_start[0];