Browse Source

* improved gcc to not build the pre-compiled header (PCH) for libstdc++

by default and introduced a Config option to enable it explicitely
	  Note:
	  Disabling PCH in libstdc++ the gcc package becomes 3 times smaller!


git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20307 10447126-35f2-4685-b0cf-6dd780d3921f
early
Christian Wiese 18 years ago
parent
commit
f31e6bb0c0
2 changed files with 9 additions and 2 deletions
  1. +4
    -1
      base/gcc/config-550.in
  2. +5
    -1
      base/gcc/gcc.conf

+ 4
- 1
base/gcc/config-550.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../gcc/config-550.in
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -87,6 +87,9 @@ if pkgcheck "gcc" X; then
fi
bool 'Build the F77 compiler' SDECFG_PKG_GCC_F77 1
bool 'Build the OBJC compiler' SDECFG_PKG_GCC_OBJC 1
comment ' '
bool 'Build the pre-compiled header (PCH) for libstdc++' \
SDECFG_PKG_GCC_CXX_PCH 0
menu_end
fi

+ 5
- 1
base/gcc/gcc.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../gcc/gcc.conf
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -66,6 +66,10 @@ var_append confopt ' ' '--disable-checking'
# we build a cross compiler in stage0 and later use known good GCCs, no bstrap
var_append confopt ' ' '--disable-bootstrap'
# build pre-compiled header (PCH) for libstdc++ (default 0)
[ "$SDECFG_PKG_GCC_CXX_PCH" = 1 ] || \
var_append confopt ' ' "--disable-libstdcxx-pch"
# add the multi-lib config
if [ "$SDECFG_MULTILIB" = 1 ]; then
var_append confopt ' ' "--enable-multilib"

Loading…
Cancel
Save