From 734fb33c30c1dd34225308e466d3005da15aa7df Mon Sep 17 00:00:00 2001
From: Jeff Law <law@redhat.com>
Date: Fri, 9 Oct 1998 21:10:04 +0000
Subject: Merge egcs-19981008.

---
 config/.Sanitize   | 1 +
 config/mh-aix43    | 4 ++++
 config/mt-linux    | 2 +-
 config/mt-sparcpic | 2 +-
 4 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 config/mh-aix43

diff --git a/config/.Sanitize b/config/.Sanitize
index ceb33b8..a3b1c58 100644
--- a/config/.Sanitize
+++ b/config/.Sanitize
@@ -44,6 +44,7 @@ Things-to-keep:
 ChangeLog
 mh-a68bsd
 mh-aix386
+mh-aix43
 mh-apollo68
 mh-cxux
 mh-cygwin32
diff --git a/config/mh-aix43 b/config/mh-aix43
new file mode 100644
index 0000000..9eb750c
--- /dev/null
+++ b/config/mh-aix43
@@ -0,0 +1,4 @@
+# AIX 4.3 and above requires -X32_64 flag to all ar and nm commands
+# to handle both 32-bit and 64-bit objects.
+AR_FOR_TARGET=ar -X32_64
+NM_FOR_TARGET=nm -X32_64
diff --git a/config/mt-linux b/config/mt-linux
index e3f15ea..a09e6f1 100644
--- a/config/mt-linux
+++ b/config/mt-linux
@@ -1,2 +1,2 @@
 # When using glibc 2 on Linux we must always use vtable thunks.
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -fvtable-thunks
+CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -fvtable-thunks -D_GNU_SOURCE
diff --git a/config/mt-sparcpic b/config/mt-sparcpic
index 35b8c9e..fd0ec27 100644
--- a/config/mt-sparcpic
+++ b/config/mt-sparcpic
@@ -1 +1 @@
-PICFLAG_FOR_TARGET=-fPIC
+PICFLAG_FOR_TARGET=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
-- 
cgit v1.1