This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug target/13391] AIX: collect2 emits bad code with duplicated symbols


------- Additional Comments From dje at watson dot ibm dot com  2004-03-04 17:28 -------
Subject: Re:  AIX: collect2 emits bad code with duplicated symbols 

	The static libraries are being included in the libstc++ archive
because of a bug in ltconfig.  Please try the following patch.

	* ltconfig: Disable building static libraries if building shared
	libraries on AIX 5L.

Index: ltconfig
===================================================================
RCS file: /cvs/gcc/gcc/ltconfig,v
retrieving revision 1.29
diff -c -p -r1.29 ltconfig
*** ltconfig	19 Nov 2003 05:29:32 -0000	1.29
--- ltconfig	4 Mar 2004 17:19:42 -0000
*************** aix3*)
*** 1592,1598 ****
    fi
    ;;
  
! aix4*)
    test "$enable_shared" = yes && enable_static=no
    ;;
  esac
--- 1593,1599 ----
    fi
    ;;
  
! aix4* | aix5*)
    test "$enable_shared" = yes && enable_static=no
    ;;
  esac



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391


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