Revision 07dac55d

b/configure
2075 2075
  case "$ARCH" in
2076 2076
  i386)
2077 2077
    if test "$gprof" = "yes" -o "$static" = "yes" ; then
2078
      ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld'
2078
      ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
2079 2079
    else
2080 2080
      # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
2081 2081
      # that the kernel ELF loader considers as an executable. I think this
2082 2082
      # is the simplest way to make it self virtualizable!
2083
      ldflags='-Wl,-shared'
2083
      ldflags='-Wl,-shared $ldflags'
2084 2084
    fi
2085 2085
    ;;
2086 2086
  sparc)
2087 2087
    # -static is used to avoid g1/g3 usage by the dynamic linker
2088
    ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static'
2088
    ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
2089 2089
    ;;
2090 2090
  ia64)
2091
    ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static'
2091
    ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
2092 2092
    ;;
2093 2093
  x86_64|ppc|ppc64|s390|sparc64|alpha|arm|m68k|mips|mips64)
2094
    ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld'
2094
    ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
2095 2095
    ;;
2096 2096
  esac
2097 2097
fi
2098 2098
if test "$target_softmmu" = "yes" ; then
2099 2099
  case "$ARCH" in
2100 2100
  ia64)
2101
    ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static'
2101
    ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static $ldflags'
2102 2102
    ;;
2103 2103
  esac
2104 2104
fi
2105 2105

  
2106
if test "$ldflags" != "" ; then
2107
  echo "LDFLAGS+=$ldflags" >> $config_mak
2108
fi
2106
echo "LDFLAGS+=$ldflags" >> $config_mak
2109 2107

  
2110 2108
echo "/* Automatically generated by configure - do not modify */" > $config_h
2111 2109
echo "#include \"../config-host.h\"" >> $config_h

Also available in: Unified diff