Commit Graph

668 Commits

Author SHA1 Message Date
Oliver Tappe
81d6094934 - moved gcc_distribution into the legacy folder, as it relates to the
legacy version of binutils & gcc


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@18091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-10 21:19:26 +00:00
Oliver Tappe
3322ac8471 - added file listing changes to last gcc-release (in preparation for the next one).
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@18090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-10 20:54:39 +00:00
Jérôme Duval
b619e2771e if a node entry is moved and the origin entry isn't found, an entry is created
In fact, BeIDE seems to delete the entry and move a temp entry to the right place: 
StatCacheServer was then thinking that the entry was removed


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@17926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-26 15:22:41 +00:00
Ingo Weinhold
d018825503 Moving jam to the buildtools module caused the rc finding algorithm to break.
We no longer even try to do that. The user can define the environment variable
RC, if they want StatCacheServer resources, otherwise they will just not be
added (a respective note is printed).
Closes bug #176.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-27 15:02:06 +00:00
Ingo Weinhold
a1a02bed3c New feature: Now jam defines a variable JAM_TARGETS, which contains
the targets given on the command line (respectively "all", if none
has been given). The contents of the variable can be changed from
within the Jamrules/Jamfiles. The targets that are in JAM_TARGETS
after Jamfile parsing is done, are those that will be built (and their
dependencies, of course). This allows for interesting build system
features.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-11 01:57:34 +00:00
Andrew Bachmann
23c3fee924 scripts
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-03 02:32:59 +00:00
Ingo Weinhold
aa62780422 Patches for building a cross compiler under FreeBSD. Proposed by
Alexander Deynichenko, changed a bit though.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-01 00:28:59 +00:00
Oliver Tappe
5effaca78b Added cc1plus as bootstrap-dependency such that fix_bdirectwin_typeinfo.cpp can
be compiled (it requires a c++-compiler, of course). 
This fixes the build on R5.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-29 18:06:48 +00:00
Axel Dörfler
c1ffb3028e Don't suppress OSPLAT to be set correctly on FreeBSD (what the hell??).
Bugfix provided by Alexander Deynichenko.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-29 17:40:47 +00:00
Oliver Tappe
cdeb2e6d93 moved USE_EGCS_MANGLED_NAMES from host to target config file in order to
generate "correct" (aka BeOS-specific) symbols when using the cross
compiler, too.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@16119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-28 14:35:27 +00:00
Ingo Weinhold
ecc89c9a6a Moved jam into the buildtools modules, where it belongs.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-29 18:40:48 +00:00
Ingo Weinhold
17dd620975 Another piece of the puzzle: BFD has a value for a target's max page size.
The value defined for ld must be the same, since otherwise one gets
effects like we had for generated PPC objects: The BFD page size was
0x10000, the ld page size 0x1000. Thus the data segment alignment forced
in the linker script didn't allow BFD to really start a new segment
(unless by accident a 0x10000 boundary was crossed as well). Hence our
libraries and executables only had one loadable segment (containing both
text and data), which neither of the three Haiku ELF loaders (in boot
loader, kernel, and userland) likes at all.

As a fix we force 0x1000 page size for target Haiku in a similar way it
is done for QNX.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-29 00:08:48 +00:00
Ingo Weinhold
dab660cbe3 * The .plt section for PPC is of type SHT_NOBITS (not SHT_PROGBITS as
for x86), so it should be placed near the .bss sections. This fixes
  linkage problems -- the linker had to split the text segment after the
  .plt section, which caused its pre-computed program header count to be
  wrong.
* I also added the stuff concerning the .fixup and .got{1,2} sections I
  found in the generic ELF PPC script. It shouldn't harm at least.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 20:07:57 +00:00
Ingo Weinhold
5f492e427e Also define "__powerpc__".
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-09 14:05:29 +00:00
Ingo Weinhold
5c52022905 On PPC we actually use a small data area.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-09 14:03:46 +00:00
Ingo Weinhold
8c840510db Added support for machine powerpc-*-haiku. Reorganized things a bit:
The i386-pc-haiku no longer uses the BeOS BFD target emulation, but
its own. A few things are shared for both *-*-haiku machines now.
The PowerPC Haiku binutils and gcc build, but I wouldn't expect them
to really produce usable output yet. We'll see...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-06 22:39:47 +00:00
Ingo Weinhold
59eda489cd Added support for target i586-pc-haiku. Mostly by cloning the *-beos
stuff, partially omitting cruft.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 14:17:09 +00:00
Ingo Weinhold
f51a39bb6e Added support for target i586-pc-haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 14:10:26 +00:00
Ingo Weinhold
64dcab13c1 Added support for Haiku x86 target.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 14:02:23 +00:00
Ingo Weinhold
5924f28caf Added machine i586-pc-haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 13:54:26 +00:00
Ingo Weinhold
72db4cec0a Added machine i586-pc-haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 13:52:01 +00:00
Ingo Weinhold
de837934d8 Copying libtool 1.5.20 into the trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 13:34:28 +00:00
Ingo Weinhold
c62c4a49d7 Copying autoconf 2.13 into the legacy part of the trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 13:23:14 +00:00
Ingo Weinhold
77f19290fd Copying autoconf 2.59 into the trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 13:17:04 +00:00
Ingo Weinhold
e6c8d025f2 Renamed gcc4 to gcc.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 22:43:43 +00:00
Ingo Weinhold
6809759e16 Copying binutils 2.16.1 into trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 16:32:10 +00:00
Ingo Weinhold
b67b6a17a6 Moved the old binutils to their new home.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:54:23 +00:00
Ingo Weinhold
9ea2a99edb Moved the old gcc to its new home.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:53:32 +00:00
Ingo Weinhold
2af2b0d2e0 New home for the gcc 2.95.3 and the old binutils.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:51:37 +00:00
Ingo Weinhold
30d2be341d Patch by Oliver to allow allow building with gcc 4.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-19 21:01:04 +00:00
Ingo Weinhold
3b60319274 Support for (cross-) building libstdc++. The locale support stuff is
mostly copy'n'pasted from the Linux/FreeBSD configuration.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:32:11 +00:00
Ingo Weinhold
b6c3e831b9 Don't tweak the [CROSS_]SYSTEM_HEADER_DIR to .../posix, since it will
cause some headers not to be found. Rather fix the test for finding
<limits.h>.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:30:09 +00:00
Ingo Weinhold
05e88697a9 Missed that. Part of patch gcc-3.4.3-BeOS-gthread.diff from Marcin's
gcc 3.4.3 package. Enables thread support for BeOS.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:28:33 +00:00
Ingo Weinhold
418d835d48 Don't generate a libiberty for target beos. It fails and we don't need
it (for building Haiku at least).


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:26:25 +00:00
Ingo Weinhold
57087cfc96 Patch gcc-3.4.3-BeOS-jcr-fix.diff from Marcin's gcc 3.4.3 package. It
keeps the JCR section (Java support stuff) from being created. A bit hacky.
There's the target define TARGET_USE_JCR_SECTION which is documented to be
used to disable it, but AFAI have seen it is never evaluated.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:24:42 +00:00
Ingo Weinhold
1c87b35698 Patch gcc-3.4.3-BeOS-gthread.diff from Marcin's gcc 3.4.3 package.
Threading support. I wonder whether the mutexes should better be
semaphores/benaphores, though.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:18:35 +00:00
Ingo Weinhold
bd1970381d Patch from Marcin's gcc 3.4.3 package (gcc-3.4.3-BeOS-beos-elf.diff
probably originally by Oliver). We additionally let gcc define
__GXX_MERGED_TYPEINFO_NAMES, which solves RTTI problems due to the fact
that a type_info for a class can exist in multiple times.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:14:29 +00:00
Nathan Whitehorn
2ac1cb254f Fixed libiberty to build on FreeBSD. A few more problems to go.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 00:47:53 +00:00
Ingo Weinhold
b4ad2f5e97 Copying gcc 4 into the main trunk.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-16 19:04:34 +00:00
Ingo Weinhold
f04816505f When bash 3 is run POSIX compatible (e.g. as /bin/sh), invoking "trap"
without command argument is not allowed anymore.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 00:56:06 +00:00
Ingo Weinhold
3e3080e506 Avoid a clash of two different RETURN enums. Happens under Linux; don't know why not under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 00:30:19 +00:00
Ingo Weinhold
140e286cfb Move trunk into respective module.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@11774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-17 08:34:20 +00:00
Oliver Tappe
d01020874b - Applied several (old, external) patches that enable the support for anonymous
structs and unions in C as well as in C++ (application of this patch has
  been sugggested by execom through BeBits-talkback).

  This mail-thread explains the problem & solution:
      http://gcc.gnu.org/ml/gcc-bugs/1999-08n/msg00914.html

  These are the patches that have been applied:
      gcc-2.95-anon-struct-union.diff
      gcc-2.95-c++-tidy.diff
      gcc-2.95-c++-anon-struct.diff
      gcc-2.95-c++-anon-struct2.diff
  which can all be found here:
  		ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95/patches/


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-19 13:01:14 +00:00
Oliver Tappe
8f01cb10fd - switched some compile-time dependencies to target dependencies, such that
cross-compiling with BeOS target works.
- tweaked build-procedure to allow for proper generation of a i586-pc-beos
  cross-compiler on LINUX.
- added documentation for creation of cross-compiler.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 23:37:16 +00:00
Oliver Tappe
cb67fd0162 - added --disable-nls to the configure calls which seems to make the build
depend on less tools.
- culled gettext, libdl and libiconv from the tool-list Axel had just added.
  Only autoconf and automake should be needed now
  [Axel: I have checked this just now on my machine, but please correct me
   if I'm still wrong!]


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 23:24:32 +00:00
Oliver Tappe
49182b477d - patched $(MK_DOC) into the default dependencies, such that chow.c gets
built during the make process. Before, it was being built during the
  install process, when gcc might not be available, if the install goes
  into an empty folder. Now, installs in empty folders work properly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 23:18:59 +00:00
Oliver Tappe
2ec313f7c3 - forgot about committing this, contains updated changes (from last release).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 21:23:26 +00:00
Axel Dörfler
89e5a936a4 Added some of the tools you need to build and where you can find them.
It still doesn't seem to be enough, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 20:06:51 +00:00
shatty
67a3c23c86 fixed scientific(ios& i) - thanks to John [Beta] Drinkwater
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-29 23:38:46 +00:00
shatty
5f2a11b032 provide convenience fixed(ios&) and scientific(ios&) inline functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 03:46:43 +00:00