This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk 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]

[patch] Add "-lbfd -liberty" for "-lopcode" only on ppc/ppc64


As mentioned by Wu in http://sources.redhat.com/ml/frysk/2006-q3/msg00102.html
item 2, the workaround for libopcode on ppc/ppc64 is that check the
target platform, and add "-lbfd -liberty" for "-lopcode" if the target
is ppc or ppc64; if not, nothing changed.

2006-08-02  Yao Qi  <qiyaoltc@cn.ibm.com>

	* m4/frysk_libopcode.m4: New file and define FRYSK_LIBOPCODE.
	* acinclude.m4: Call FRYSK_LIBOPCODE.

	* frysk-core/Makefile.am: Append "-lbfd -liberty" per macro USE_LIBOPCODES.
	* frysk-gui/Makefile.am: Likewise.
	* frysk-gtk/Makefile.am: Likewise.
	* frysk-imports/Makefile.am: Likewise.
	* frysk-sys/Makefile.am: Likewise.

We are pleased to make contributions to elfutils to replace
binutils/bfd here, but currently, this patch could ensure that frsysk
could be built on ppc/ppc64 without applying any our local patches
again.

Test this patch on PPC64 and X86, OK to commit?  Thanks a lot!

-- 
Yao Qi

Attachment: common.patch
Description: Text document

Attachment: Makefile.patch
Description: Text document


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