This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 05/12] libiberty/ * configure: Add Microblaze PICFLAG


On 10/10/2012 04:13 AM, david.holsgrove@xilinx.com wrote:
From: David Holsgrove <david.holsgrove@xilinx.com>

Microblaze requires libiberty to be compiled with -fPIC
Why? Which target platforms are you actually building for?

diff --git a/libiberty/configure b/libiberty/configure
index 6e98352..266d8b2 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -4899,6 +4899,9 @@ case "${host}" in
      m68k-*-*)
  	PICFLAG=-fpic
  	;;
+    microblaze*-*-*)
+	PICFLAG=-fPIC
+	;;

So far, we have been building binutils for microblaze-rtems* without -fPIC.

I am inclined to believe you are generalizing too far on a certain OS's specific demands/restrictions.

Ralf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]