static link
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@423 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
76b62fd001
commit
3a4739d651
@ -39,7 +39,14 @@ OP_CFLAGS+= -falign-functions=0
|
|||||||
else
|
else
|
||||||
OP_CFLAGS+= -malign-functions=0
|
OP_CFLAGS+= -malign-functions=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef TARGET_GPROF
|
ifdef TARGET_GPROF
|
||||||
|
USE_I386_LD=y
|
||||||
|
endif
|
||||||
|
ifdef CONFIG_STATIC
|
||||||
|
USE_I386_LD=y
|
||||||
|
endif
|
||||||
|
ifdef USE_I386_LD
|
||||||
LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386.ld
|
LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386.ld
|
||||||
else
|
else
|
||||||
# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
|
# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
static const char *interp_prefix = CONFIG_QEMU_PREFIX;
|
static const char *interp_prefix = CONFIG_QEMU_PREFIX;
|
||||||
|
|
||||||
#ifdef __i386__
|
#if defined(__i386__) && !defined(CONFIG_STATIC)
|
||||||
/* Force usage of an ELF interpreter even if it is an ELF shared
|
/* Force usage of an ELF interpreter even if it is an ELF shared
|
||||||
object ! */
|
object ! */
|
||||||
const char interp[] __attribute__((section(".interp"))) = "/lib/ld-linux.so.2";
|
const char interp[] __attribute__((section(".interp"))) = "/lib/ld-linux.so.2";
|
||||||
|
Loading…
Reference in New Issue
Block a user