Commit e11ddaf5 by Nathan Sidwell

configure.ac (--with-specs): New option.

	* configure.ac (--with-specs): New option.
	* configure: Regenerated.
	* gcc.c (driver_self_specs): Include CONFIGURE_SPECS.
	* Makefile.in (DRIVER_DEFINES): Add -DCONFIGURE_SPECS.

From-SVN: r155208
parent b6eb7438
...@@ -2100,7 +2100,8 @@ DRIVER_DEFINES = \ ...@@ -2100,7 +2100,8 @@ DRIVER_DEFINES = \
-DTOOLDIR_BASE_PREFIX=\"$(libsubdir_to_prefix)$(prefix_to_exec_prefix)\" \ -DTOOLDIR_BASE_PREFIX=\"$(libsubdir_to_prefix)$(prefix_to_exec_prefix)\" \
@TARGET_SYSTEM_ROOT_DEFINE@ \ @TARGET_SYSTEM_ROOT_DEFINE@ \
$(VALGRIND_DRIVER_DEFINES) \ $(VALGRIND_DRIVER_DEFINES) \
`test "X$${SHLIB_LINK}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X$${SHLIB_LINK}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \
-DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h multilib.h \ gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h multilib.h \
Makefile $(lang_specs_files) specs.h prefix.h $(GCC_H) $(FLAGS_H) \ Makefile $(lang_specs_files) specs.h prefix.h $(GCC_H) $(FLAGS_H) \
......
...@@ -757,6 +757,7 @@ REPORT_BUGS_TEXI ...@@ -757,6 +757,7 @@ REPORT_BUGS_TEXI
REPORT_BUGS_TO REPORT_BUGS_TO
PKGVERSION PKGVERSION
onestep onestep
CONFIGURE_SPECS
CROSS_SYSTEM_HEADER_DIR CROSS_SYSTEM_HEADER_DIR
TARGET_SYSTEM_ROOT_DEFINE TARGET_SYSTEM_ROOT_DEFINE
TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT
...@@ -880,6 +881,7 @@ with_dwarf2 ...@@ -880,6 +881,7 @@ with_dwarf2
enable_shared enable_shared
with_build_sysroot with_build_sysroot
with_sysroot with_sysroot
with_specs
enable_intermodule enable_intermodule
with_pkgversion with_pkgversion
with_bugurl with_bugurl
...@@ -1632,6 +1634,7 @@ Optional Packages: ...@@ -1632,6 +1634,7 @@ Optional Packages:
--with-build-sysroot=sysroot --with-build-sysroot=sysroot
use sysroot as the system root during the build use sysroot as the system root during the build
--with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR. --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
--with-specs=SPECS add SPECS to driver command-line processing
--with-pkgversion=PKG Use PKG in the version string in place of "GCC" --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
--with-bugurl=URL Direct users to URL to report a bug --with-bugurl=URL Direct users to URL to report a bug
--with-multilib-list Select multilibs (SH only) --with-multilib-list Select multilibs (SH only)
...@@ -6853,6 +6856,17 @@ fi ...@@ -6853,6 +6856,17 @@ fi
# Check whether --with-specs was given.
if test "${with_specs+set}" = set; then :
withval=$with_specs; CONFIGURE_SPECS=$withval
else
CONFIGURE_SPECS=
fi
# Build with intermodule optimisations # Build with intermodule optimisations
# Check whether --enable-intermodule was given. # Check whether --enable-intermodule was given.
if test "${enable_intermodule+set}" = set; then : if test "${enable_intermodule+set}" = set; then :
...@@ -17023,7 +17037,7 @@ else ...@@ -17023,7 +17037,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 17026 "configure" #line 17040 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -17129,7 +17143,7 @@ else ...@@ -17129,7 +17143,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 17132 "configure" #line 17146 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
......
...@@ -785,6 +785,14 @@ AC_SUBST(TARGET_SYSTEM_ROOT) ...@@ -785,6 +785,14 @@ AC_SUBST(TARGET_SYSTEM_ROOT)
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
AC_SUBST(CROSS_SYSTEM_HEADER_DIR) AC_SUBST(CROSS_SYSTEM_HEADER_DIR)
AC_ARG_WITH(specs,
[AS_HELP_STRING([--with-specs=SPECS],
[add SPECS to driver command-line processing])],
[CONFIGURE_SPECS=$withval],
[CONFIGURE_SPECS=]
)
AC_SUBST(CONFIGURE_SPECS)
# Build with intermodule optimisations # Build with intermodule optimisations
AC_ARG_ENABLE(intermodule, AC_ARG_ENABLE(intermodule,
[ --enable-intermodule build the compiler in one step], [ --enable-intermodule build the compiler in one step],
......
...@@ -955,7 +955,7 @@ static const char *const multilib_defaults_raw[] = MULTILIB_DEFAULTS; ...@@ -955,7 +955,7 @@ static const char *const multilib_defaults_raw[] = MULTILIB_DEFAULTS;
static const char *const driver_self_specs[] = { static const char *const driver_self_specs[] = {
"%{fdump-final-insns:-fdump-final-insns=.} %<fdump-final-insns", "%{fdump-final-insns:-fdump-final-insns=.} %<fdump-final-insns",
DRIVER_SELF_SPECS, GOMP_SELF_SPECS DRIVER_SELF_SPECS, CONFIGURE_SPECS, GOMP_SELF_SPECS
}; };
#ifndef OPTION_DEFAULT_SPECS #ifndef OPTION_DEFAULT_SPECS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment