提交 07dac55d 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

permit to add things to LDFLAGS for target

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 d6b38939
...@@ -2075,37 +2075,35 @@ if test "$target_linux_user" = "yes" -o "$target_linux_user" = "yes" ; then ...@@ -2075,37 +2075,35 @@ if test "$target_linux_user" = "yes" -o "$target_linux_user" = "yes" ; then
case "$ARCH" in case "$ARCH" in
i386) i386)
if test "$gprof" = "yes" -o "$static" = "yes" ; then if test "$gprof" = "yes" -o "$static" = "yes" ; then
ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld' ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
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
# that the kernel ELF loader considers as an executable. I think this # that the kernel ELF loader considers as an executable. I think this
# is the simplest way to make it self virtualizable! # is the simplest way to make it self virtualizable!
ldflags='-Wl,-shared' ldflags='-Wl,-shared $ldflags'
fi fi
;; ;;
sparc) sparc)
# -static is used to avoid g1/g3 usage by the dynamic linker # -static is used to avoid g1/g3 usage by the dynamic linker
ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static' ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
;; ;;
ia64) ia64)
ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static' ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
;; ;;
x86_64|ppc|ppc64|s390|sparc64|alpha|arm|m68k|mips|mips64) x86_64|ppc|ppc64|s390|sparc64|alpha|arm|m68k|mips|mips64)
ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld' ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
;; ;;
esac esac
fi fi
if test "$target_softmmu" = "yes" ; then if test "$target_softmmu" = "yes" ; then
case "$ARCH" in case "$ARCH" in
ia64) ia64)
ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static' ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
;; ;;
esac esac
fi fi
if test "$ldflags" != "" ; then echo "LDFLAGS+=$ldflags" >> $config_mak
echo "LDFLAGS+=$ldflags" >> $config_mak
fi
echo "/* Automatically generated by configure - do not modify */" > $config_h echo "/* Automatically generated by configure - do not modify */" > $config_h
echo "#include \"../config-host.h\"" >> $config_h echo "#include \"../config-host.h\"" >> $config_h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册