Go to file
Simon South 465fb4d4a7 gcc2: Allow the user to build non-PI executables
This aligns legacy gcc with the changes to gcc4 committed in 4192115 and
the two subsequent commits.  It also disables legacy ld's default
behaviour of recursively resolving shared-library dependencies at link
time, preventing missing-library warnings during the build and aligning
ld's behaviour with that of more recent versions.

gcc2:

* CPP_SPEC: Replace non-existent command-line options with valid
  equivalents.
* CC1_SPEC: Remove non-existent "no-fpic" option; add "fno-pic" and
  "fno-PIC" as options that disable the generation of
  position-independent code; use "-fPIC" by default.
* LINK_SPEC: Pass "-shared" to the linker only if it was passed to gcc;
  output position-independent executables by default, exporting all
  symbols to match the behaviour of "-shared"; when building a
  dynamically linked executable, do not recursively add shared libraries
  as dependencies but do allow unresolved symbols in them; specify
  "-Bsymbolic" only when building a shared library.
* All: Wrap lines at 80 columns; use more compact notation where
  available.

ld:

* Do not recursively resolve shared-library dependencies when building
  an executable if the "--no-add-needed" and "--allow-shlib-undefined"
  options are in effect.  This effectively backports binutils commits
  8fbb09e and 4706eab.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-11-02 21:09:55 +01:00
autoconf Congrats svn_load_dirs.pl, this change just disappeared. 2008-03-19 13:01:56 +00:00
binutils binutils: ld: Set ELF interpreter to "/system/runtime_loader" 2015-10-28 18:05:28 +01:00
cloog cloog: removed included isl 2014-01-27 21:52:03 +01:00
gcc gcc: ppc: Remove now-redundant CC1_SPEC 2015-10-28 18:05:34 +01:00
isl imported isl-0.12.2 2014-01-27 21:38:34 +01:00
jam Revert "jam: Fix build/run on Windows." 2015-08-07 17:22:50 +02:00
legacy gcc2: Allow the user to build non-PI executables 2015-11-02 21:09:55 +01:00
libtool Added support for Haiku x86 target. 2005-12-05 14:02:23 +00:00
patches Replace outdated paths in buildtools 2012-10-31 10:33:57 -04:00
.gitignore * Add .gitignore. 2014-07-21 11:18:25 +02:00
build-gcc2-package-Haiku.sh Pimp up the gcc 2 package building script 2011-07-17 17:02:44 +02:00
build-gcc4-optional-package-Haiku.sh Force POSIX locale, as otherwise the build (makeinfo) may break. 2012-11-07 20:31:39 +01:00
INSTALL-as-haiku-cross-compiler-on-LINUX Fix x86 configure option for crosscompile on Linux 2014-11-07 21:38:45 +01:00
INSTALL-gcc2-from-source-Haiku Merge branch 'master' into package-management 2013-05-04 14:45:58 +02:00
INSTALL-gcc4-from-source-Haiku Force POSIX locale, as otherwise the build (makeinfo) may break. 2012-11-07 20:31:39 +01:00