diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2021-03-24 10:32:50 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-04-13 12:55:33 +0200 |
commit | 80bd01ef831fbbb08f883a76576eba128ca1c385 (patch) | |
tree | 94f9b4f7728aad142e902ed37121a7133bc90f14 /newlib/libm | |
parent | 20d00819984058e439cfe40818f81d7315c89201 (diff) | |
download | newlib-80bd01ef831fbbb08f883a76576eba128ca1c385.zip newlib-80bd01ef831fbbb08f883a76576eba128ca1c385.tar.gz newlib-80bd01ef831fbbb08f883a76576eba128ca1c385.tar.bz2 |
Add build mechanism to share common header files between machines
So far the build mechanism in newlib only allowed to either define
machine-specific headers, or headers shared between all machines.
In some cases, architectures are sufficiently alike to share header
files between them, but not with other architectures. A good example
is ix86 vs. x86_64, which share certain traits with each other, but
not with other architectures.
Introduce a new configure variable called "shared_machine_dir". This
dir can then be used for headers shared between architectures.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libm')
-rw-r--r-- | newlib/libm/Makefile.in | 1 | ||||
-rw-r--r-- | newlib/libm/common/Makefile.in | 1 | ||||
-rw-r--r-- | newlib/libm/complex/Makefile.in | 1 | ||||
-rwxr-xr-x | newlib/libm/configure | 6 | ||||
-rw-r--r-- | newlib/libm/fenv/Makefile.in | 7 | ||||
-rw-r--r-- | newlib/libm/math/Makefile.in | 1 | ||||
-rw-r--r-- | newlib/libm/mathfp/Makefile.in | 1 |
7 files changed, 13 insertions, 5 deletions
diff --git a/newlib/libm/Makefile.in b/newlib/libm/Makefile.in index 20fc290..aa374d8 100644 --- a/newlib/libm/Makefile.in +++ b/newlib/libm/Makefile.in @@ -287,6 +287,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ diff --git a/newlib/libm/common/Makefile.in b/newlib/libm/common/Makefile.in index 8968438..511ae2f 100644 --- a/newlib/libm/common/Makefile.in +++ b/newlib/libm/common/Makefile.in @@ -339,6 +339,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ diff --git a/newlib/libm/complex/Makefile.in b/newlib/libm/complex/Makefile.in index 20b3b17..cc477fe 100644 --- a/newlib/libm/complex/Makefile.in +++ b/newlib/libm/complex/Makefile.in @@ -272,6 +272,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ diff --git a/newlib/libm/configure b/newlib/libm/configure index 9b06c69..0c79bb2 100755 --- a/newlib/libm/configure +++ b/newlib/libm/configure @@ -639,6 +639,7 @@ OBJDUMP DLLTOOL SED sys_dir +shared_machine_dir machine_dir libm_machine_dir lpfx @@ -3818,6 +3819,7 @@ OBJEXT=${oext} + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : @@ -11507,7 +11509,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11510 "configure" +#line 11512 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11613,7 +11615,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11616 "configure" +#line 11618 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/newlib/libm/fenv/Makefile.in b/newlib/libm/fenv/Makefile.in index b2adb82..8811bb8 100644 --- a/newlib/libm/fenv/Makefile.in +++ b/newlib/libm/fenv/Makefile.in @@ -233,6 +233,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ @@ -252,7 +253,7 @@ libcommon_la_LDFLAGS = -Xcompiler -nostdlib lib_a_CFLAGS = -fbuiltin -fno-math-errno $(am__append_1) @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = libcommon.la @USE_LIBTOOL_TRUE@libcommon_la_SOURCES = $(src) -@USE_LIBTOOL_FALSE@noinst_DATA = +@USE_LIBTOOL_FALSE@noinst_DATA = @USE_LIBTOOL_TRUE@noinst_DATA = objectlist.awk.in @USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a @USE_LIBTOOL_FALSE@lib_a_SOURCES = $(src) @@ -310,7 +311,7 @@ $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES) +lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES) -rm -f lib.a $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) $(RANLIB) lib.a @@ -323,7 +324,7 @@ clean-noinstLTLIBRARIES: echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done -libcommon.la: $(libcommon_la_OBJECTS) $(libcommon_la_DEPENDENCIES) $(EXTRA_libcommon_la_DEPENDENCIES) +libcommon.la: $(libcommon_la_OBJECTS) $(libcommon_la_DEPENDENCIES) $(EXTRA_libcommon_la_DEPENDENCIES) $(libcommon_la_LINK) $(am_libcommon_la_rpath) $(libcommon_la_OBJECTS) $(libcommon_la_LIBADD) $(LIBS) mostlyclean-compile: diff --git a/newlib/libm/math/Makefile.in b/newlib/libm/math/Makefile.in index 7170bf5..7df02c6 100644 --- a/newlib/libm/math/Makefile.in +++ b/newlib/libm/math/Makefile.in @@ -318,6 +318,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ diff --git a/newlib/libm/mathfp/Makefile.in b/newlib/libm/mathfp/Makefile.in index 383121b..006c198 100644 --- a/newlib/libm/mathfp/Makefile.in +++ b/newlib/libm/mathfp/Makefile.in @@ -290,6 +290,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ +shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ |