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

Add --hash-style=both --no-copy-dt-needed-entries --as-needed to linker flags?



Hi there,

Matthias Klose (doko, CCed) added a patch to Ubuntu's ghc to pass these
flags to ld on linux arches.

Should we take this change in Debian too? I understand that the last two
will be switched to being the default in ld soon. We should likely
follow, and it is the only change that Ubuntu has over Debian.

@doko, why did you limit to *-linux*? For --hash-style=both? Could you
generalise the patch for Debian (or let us know on which arches things
work)?

Attached.

Thanks,

-- 
Iain Lane                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]
PhD student                                       [ ial@cs.nott.ac.uk ]
Index: ghc-7.0.4/aclocal.m4
===================================================================
--- ghc-7.0.4.orig/aclocal.m4	2011-10-22 23:04:50.527329974 +0100
+++ ghc-7.0.4/aclocal.m4	2011-10-22 23:09:22.520462894 +0100
@@ -109,6 +109,10 @@
         $4="$$4 -arch x86_64"
         $5="$$5 -m64"
         ;;
+    *-linux*)
+        $3="$$3 -Wl,--hash-style=both,--no-copy-dt-needed-entries,--as-needed"
+        $4="$$4 --hash-style=both --no-copy-dt-needed-entries --as-needed"
+        ;;
     esac
 
     # If gcc knows about the stack protector, turn it off.

Attachment: signature.asc
Description: Digital signature


Reply to: