diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2012-12-06 17:33:44 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2012-12-06 17:33:44 +0000 |
commit | a4f34961d862421a174505cb79306d29d73bb9db (patch) | |
tree | 4a046fa772d76cd16c3d0f2b8d26801c4474f14f /newlib | |
parent | eac98364a39546bc907f9c4744a08e0046ec0286 (diff) | |
download | newlib-a4f34961d862421a174505cb79306d29d73bb9db.zip newlib-a4f34961d862421a174505cb79306d29d73bb9db.tar.gz newlib-a4f34961d862421a174505cb79306d29d73bb9db.tar.bz2 |
2012-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* configure.host: Define libm_machine_dir value for arm.
* libm/machine/configure.in: Add arm to libm machines list.
* libm/machine/configure: Regenerate.
* libm/machine/arm/Makefile.am: New file.
* libm/machine/arm/Makefile.in: Generated.
* libm/machine/arm/aclocal.m4: Generated.
* libm/machine/arm/configure: Generated.
* libm/machine/arm/configure.in: New file.
* libm/machine/arm/s_ceil.c: Likewise.
* libm/machine/arm/s_floor.c: Likewise.
* libm/machine/arm/s_nearbyint.c: Likewise.
* libm/machine/arm/s_rint.c: Likewise.
* libm/machine/arm/s_round.c: Likewise.
* libm/machine/arm/s_trunc.c: Likewise.
* libm/machine/arm/sf_ceil.c: Likewise.
* libm/machine/arm/sf_floor.c: Likewise.
* libm/machine/arm/sf_nearbyint.c: Likewise.
* libm/machine/arm/sf_rint.c: Likewise.
* libm/machine/arm/sf_round.c: Likewise.
* libm/machine/arm/sf_trunc.c: Likewise.
Diffstat (limited to 'newlib')
-rwxr-xr-x | newlib/libm/machine/configure | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/newlib/libm/machine/configure b/newlib/libm/machine/configure index 5bd2205..2b3baf6 100755 --- a/newlib/libm/machine/configure +++ b/newlib/libm/machine/configure @@ -785,6 +785,7 @@ LIBS CPPFLAGS CPP' ac_subdirs_all='aarch64 +arm i386 spu' @@ -6933,7 +6934,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) - LD="${LD-ld} -m elf_i386" + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" @@ -8468,6 +8476,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi + lt_prog_compiler_pic='-fPIC' ;; amigaos*) @@ -9649,7 +9658,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) + freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes @@ -10562,7 +10571,7 @@ freebsd* | dragonfly*) objformat=`/usr/bin/objformat` else case $host_os in - freebsd[123]*) objformat=aout ;; + freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi @@ -10580,7 +10589,7 @@ freebsd* | dragonfly*) esac shlibpath_var=LD_LIBRARY_PATH case $host_os in - freebsd2*) + freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) @@ -11414,7 +11423,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11417 "configure" +#line 11426 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11520,7 +11529,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11523 "configure" +#line 11532 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11767,6 +11776,8 @@ if test -n "${libm_machine_dir}"; then subdirs="$subdirs aarch64" ;; + arm) subdirs="$subdirs arm" + ;; i386) subdirs="$subdirs i386" ;; spu) subdirs="$subdirs spu" |