From 82479c1475b59501dfdbe3d817064db7133e0d03 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 22 Mar 2008 00:13:53 +0000 Subject: [PATCH] Auto-generated files. Manually adjusted, since I don't trust the current tools to deal with those ancient files correctly. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24515 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- legacy/gcc/config.guess | 6 ++++++ legacy/gcc/config.sub | 10 ++++++++++ legacy/gcc/ltconfig | 13 +++++++++++++ legacy/gcc/gcc/configure | 10 ++++++++++ 4 files changed, 36 insertions(+), 3 deletions(-) diff --git a/legacy/gcc/config.guess b/legacy/gcc/config.guess index 5b1e619..7f8b0b0 100755 --- a/legacy/gcc/config.guess +++ b/legacy/gcc/config.guess @@ -874,6 +874,12 @@ BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; + BeMac:Haiku:*:*) + echo powerpc-apple-haiku + exit 0 ;; + BePC:Haiku:*:*) + echo i586-pc-haiku + exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 diff --git a/legacy/gcc/config.sub b/legacy/gcc/config.sub index 567459e..14d9f78 100755 --- a/legacy/gcc/config.sub +++ b/legacy/gcc/config.sub @@ -937,13 +937,13 @@ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* ) + | -interix* | -uwin* | -haiku* ) # Remember, each alternative MUST END IN *, to match a version number. ;; # EGCS LOCAL -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ - | -macos* | -mpw* | -magic* | -mon960* | -lnews* ) + | -macos* | -mpw* | -magic* | -mon960* | -lnews* | -haiku* ) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` @@ -1083,6 +1083,9 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; @@ -1190,6 +1193,9 @@ ;; -beos*) vendor=be + ;; + -haiku*) + vendor=haiku ;; -hpux*) vendor=hp diff --git a/legacy/gcc/ltconfig b/legacy/gcc/ltconfig index ab304fd..10bfca8 100755 --- a/legacy/gcc/ltconfig +++ b/legacy/gcc/ltconfig @@ -614,7 +614,7 @@ link_static_flag='-static' case "$host_os" in - beos* | irix5* | irix6* | osf3* | osf4*) + beos* | irix5* | irix6* | osf3* | osf4* | haiku*) # PIC is the default for these OSes. ;; aix*) @@ -1076,6 +1076,11 @@ fi ;; + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' + fi + ;; + cygwin* | mingw*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. @@ -1627,6 +1632,12 @@ beos*) library_names_spec='${libname}.so' dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +haiku*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os runtime_loader" shlibpath_var=LIBRARY_PATH ;; diff --git a/legacy/gcc/gcc/configure b/legacy/gcc/gcc/configure index bd872d8..3141ae2 100755 --- a/legacy/gcc/gcc/configure +++ b/legacy/gcc/gcc/configure @@ -3564,6 +3564,16 @@ fixincludes=Makefile.in float_format=i386 ;; + i[3456789]86-*-haiku*) + xm_file=i386/xm-haiku.h + tmake_file='i386/t-haiku i386/t-crtpic' + tm_file=i386/haiku.h + xmake_file=i386/x-haiku + extra_objs=winnt.o + extra_parts='crtbegin.o crtend.o' + fixincludes=Makefile.in + float_format=i386 + ;; i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) tm_file=i386/bsd386.h # tmake_file=t-libc-ok -- gitore 0.2.2