aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-07-13 14:43:39 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2020-07-14 10:41:40 -0400
commit4f97bed9a7989e14cbb53e405fbd8b3c08aa75ec (patch)
tree27015e9470533a3864c13398c9ec4a7fe1ed6708 /libstdc++-v3
parent524862db444b6544c6dc87c5f06f351100ecf50d (diff)
downloadgcc-4f97bed9a7989e14cbb53e405fbd8b3c08aa75ec.zip
gcc-4f97bed9a7989e14cbb53e405fbd8b3c08aa75ec.tar.gz
gcc-4f97bed9a7989e14cbb53e405fbd8b3c08aa75ec.tar.bz2
aix: FAT libraries: test native compiler mode directly
The FAT libraries config fragments need to know which library is native and which is a multilib to choose the correct multilib from which to append the additional object file or shared object file. Testing the top-level archive is fragile because it will fail if rebuilding. This patch tests the compiler preprocessing macros for the 64 bit AIX specific __64BIT__ to determine the native mode of the compiler in MULTILIBTOP. 2020-07-14 David Edelsohn <dje.gcc@gmail.com> libatomic/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libgcc/ChangeLog * config/rs6000/t-slibgcc-aix: Set BITS from compiler cpp macro. libgfortran/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libgomp/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libstdc++-v3/ChangeLog * config/os/aix/t-aix: Set BITS from compiler cpp macro.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/config/os/aix/t-aix2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/config/os/aix/t-aix b/libstdc++-v3/config/os/aix/t-aix
index a588746..a5d58fa 100644
--- a/libstdc++-v3/config/os/aix/t-aix
+++ b/libstdc++-v3/config/os/aix/t-aix
@@ -1,5 +1,5 @@
ifeq ($(MULTIBUILDTOP),)
-BITS=$(shell if test -z "`ar -X64 t src/.libs/$(PACKAGE).a`" ; then \
+BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \
echo '64'; else echo '32'; fi)
MAJOR=$(firstword $(subst :, ,$(libtool_VERSION)))
all-local: