lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a3571e5d 4/9: Remove a dependency on an ancie


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a3571e5d 4/9: Remove a dependency on an ancient gcc version
Date: Tue, 28 Jun 2022 22:26:46 -0400 (EDT)

branch: master
commit a3571e5dfa7b6ac15567f3fbcaa2cea9c8e7219e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove a dependency on an ancient gcc version
    
    Expunged code that supported a long-obsolete gcc version, but kept
    and updated the accompanying comments, which remain of interest.
---
 compiler_gcc.make | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/compiler_gcc.make b/compiler_gcc.make
index cf7ed563..ed367dc2 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -525,14 +525,13 @@ ifeq (x86_64-pc-linux-gnu,$(LMI_TRIPLET))
   LDFLAGS += -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code
 endif
 
-# Explicitly disable the infelicitous auto-import default. See:
-#   http://article.gmane.org/gmane.comp.gnu.mingw.user/19758
-#     [2006-05-18T11:38:01Z from Earnie Boyd]
-# Do not disable it for MinGW-w64, which seems to require it.
-
-ifeq (3.4.5,$(gcc_version))
-  LDFLAGS += -Wl,--disable-auto-import
-endif
+# By infelicitous default, MinGW enables auto-import. See, e.g.:
+#   https://sourceforge.net/p/mingw/mailman/message/16354653/
+# Disabling it globally, thus:
+#   LDFLAGS += -Wl,--disable-auto-import
+# worked with mingw.org's gcc, but the more recent MinGW-w64
+# versions seem to require it unless $(USE_SO_ATTRIBUTES) is
+# defined.
 
 ifneq (,$(USE_SO_ATTRIBUTES))
   ifeq (mingw32,$(findstring mingw32,$(LMI_TRIPLET)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]