Commit Graph

681 Commits

Author SHA1 Message Date
joerg 2822ac080b Fix some LP64 issues 2010-12-08 01:54:21 +00:00
plunky f33b316b63 Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.
2010-12-03 21:38:46 +00:00
skrll 15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
joerg 5511fa25aa Don't build the CRT stuff here for i386 and x86_64. 2010-08-07 18:02:40 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
joerg 7e9c48e195 Explicitly link libstdc++ against libm as found by Arnaud Lacombe. 2010-06-25 16:54:25 +00:00
mrg 2f6bd86c72 re-run mknative-gcc. picks up:
- gthr-posix.h fix
- stpcpy / stpncpy
- various GAS support
2010-05-08 03:00:10 +00:00
drochner 7399a74f7a mknative-gcc run to pick up gthr-posix.h change
(also picks up stpcpy() and stpncpy(), and gas weakref support)
2010-05-06 10:08:11 +00:00
skrll 5b65f3319f (re-)run gcc mknative for powerpc64.
Fixes PR/43008.
2010-03-19 14:01:57 +00:00
mrg 19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
uebayasi 72c3db3e60 For new libgcc rules; include generated makefiles first, then register ${LIB}
and on-the-fly source rules.

No changes against existing libgcc rules.
2009-12-18 13:57:10 +00:00
uebayasi 1d70400acb Regenerate with libgcc TFmode softfloat support enabled. 2009-12-18 13:01:44 +00:00
uebayasi ff345fa63c Libgcc softfloat wrapper source code. This file is not auto-generated. Due
to the design of libgcc build procedure I had to reverse engineer this from
generated files.
2009-12-18 12:51:43 +00:00
uebayasi 75da64c9d4 Fix a misplaced conditional I made. 2009-12-18 12:48:16 +00:00
mrg ad469079f3 copy across a hack from the mips libc/mcount build. self documenting:
+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf.  Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn
2009-12-17 07:24:06 +00:00
uebayasi 3a48f7cfa9 Conditionalize some build directories by ${MKCXX}. 2009-12-14 12:43:48 +00:00
mrg 4a1f591022 run mknative-gcc for these, in -current. 2009-12-14 04:43:59 +00:00
mrg e00f8f918d regenerate these with -current mknative-gcc. 2009-12-14 03:44:27 +00:00
mrg 149287da38 add the mips64 files as found on the matt-nb5-mips64 branch,
for base-reference.
2009-12-14 02:26:28 +00:00
uebayasi d1b1501024 Fix inverted condition in previous. 2009-12-09 17:30:14 +00:00
uebayasi bf65171399 Switch to new style only if is explicitly set. 2009-12-09 06:20:13 +00:00
uebayasi 311d76439d Don't put intermediate data. Prompted by mrg@. 2009-12-09 06:08:26 +00:00
uebayasi 3650871eaa Correct CLEANFILES in the new style case. 2009-11-30 13:24:32 +00:00
uebayasi ceb0a5e740 Enable the new style build if the new style generated makefiles exist. 2009-11-30 13:07:38 +00:00
uebayasi 0f821b2360 Minor clean up. No functional changes. 2009-11-30 12:07:28 +00:00
uebayasi ce87c08dd6 Minor clean-up for the coming changes. 2009-11-30 11:55:12 +00:00
uebayasi f6ebb00c83 Wrapper generation rule for the new style libgcc reach-over. 2009-11-30 11:47:06 +00:00
uebayasi 7099d05cc4 Snapshot of generated files. Makfile glue will come soon. 2009-11-30 10:26:36 +00:00
uebayasi 15930f9770 Initial check-in of the new libgcc mknative analyzed files for mips64eb. 2009-11-30 08:25:47 +00:00
skrll 0f3b48f345 Remove binutils 2.16 crossover build files. 2009-11-08 15:24:36 +00:00
martin 5526bb0709 If TARGET_FLOAT_FORMAT is not IEEE_FLOAT_FORMAT (i.e. we have no NaNs),
do not compile special code to fix up different NaN values.
Re-enable complex support functions in libgcc for vax.
2009-10-01 20:07:09 +00:00
skrll 8a770313a3 Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.
2009-09-08 07:08:00 +00:00
skrll 3734e9d3e6 Make binutils stuff conditional on HAVE_BINUTILS being 216. 2009-08-18 15:11:25 +00:00
skrll ff1fab9942 Re-run mknative for crtstuff. 2009-08-16 17:36:26 +00:00
christos 2b4e82affb install libgcc_s.so in /lib for MKPIE=yes. 2009-05-01 15:27:20 +00:00
drochner 94b97e7a5b regenerated after i386 gcc configuration change (assume i486) 2009-03-27 19:38:43 +00:00
he 988dfde8cd Regenerate these using tools/binutils/Makefile's mknative-binutils
target after the recent addition of BFD_DETERMINISTIC_OUTPUT to libbfd.
2009-03-08 12:38:51 +00:00
he e5e9eb0ed4 Regenerate these using tools/binutils/Makefile's mknative-binutils
target after the recent addition of BFD_DETERMINISTIC_OUTPUT to libbfd.

The list of architectures is not complete, but these were the
ones I had readily-available toolchains for.  The rest will be
dealt with a little later, by me or someone else.
2009-03-07 18:11:47 +00:00
christos 2ecd137f53 bump majors. 2009-01-11 03:09:35 +00:00
mrg 4ed5b66617 add ${LDOPTS} to the compile command. 2008-10-26 07:04:04 +00:00
mrg 3fde6715d8 use ${BFD_MACHINE_ARCH} in preference to ${MACHINE_ARCH}, if defined. 2008-10-25 23:56:02 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
tron 8bc4e96cb9 Disable "-Wstack-protector" in a slightly nicer way. 2008-10-06 14:20:12 +00:00
tron c923257caa As "libgcov.c" uses alloca(3) (*yuuuk*) disable "-Wstack-protector" to
fix the build with "USE_SSP" set to "yes".
2008-09-25 17:40:05 +00:00
skrll 826062446a Build and install a libgcov. 2008-09-23 06:59:42 +00:00
skrll 085bc41d78 Centralise arch/${MACHINE_ARCH}.mk inclusion.
Thanks to Tyler (rtr).
2008-09-18 12:20:19 +00:00
mrg 33fb41cc00 re-run mknative-gcc for gcc-4.1-20080831.
XXX: powerpc and sh3eb files got WORDS_BIGENDIAN define wrong.
XXX: hand patched the correct for now, and will be investigating
XXX: why this is happening now.
2008-09-01 23:52:24 +00:00
martin 603c49b548 re-mknative after recent gcc configure change for m68k 2008-08-24 08:51:11 +00:00
lukem d9803a148e Create BUILDSYMLINKS for all files in G_LIB2ADD that are in ${GNUHOSTDIST},
not just .asm files.
Fixes hp700 for PR 39367, and a related problem on powerpc64 platforms.
2008-08-17 07:47:48 +00:00