On Tue, Apr 19, 2016 at 10:36 PM, Michał Górny <mgo...@gentoo.org> wrote:
> On Tue, 19 Apr 2016 22:32:51 +0800 > Leno Hou <leno...@gmail.com> wrote: > > > On Tue, Apr 19, 2016 at 10:20 PM, Michał Górny <mgo...@gentoo.org> > wrote: > > > > > On Tue, 19 Apr 2016 22:12:59 +0800 > > > Leno Hou <leno...@gmail.com> wrote: > > > > > > > --- > > > > .../opensp-1.5.2-configure-with-ppc64le.patch | 26 > > > ++++++++++++++++++++++ > > > > app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++- > > > > app-text/opensp/opensp-1.5.2-r4.ebuild | 1 + > > > > 3 files changed, 29 insertions(+), 1 deletion(-) > > > > create mode 100644 > > > app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch > > > > > > > > diff --git > > > a/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch > > > b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch > > > > new file mode 100644 > > > > index 0000000..e1c8bef > > > > --- /dev/null > > > > +++ b/app-text/opensp/files/opensp-1.5.2-configure-with-ppc64le.patch > > > > @@ -0,0 +1,26 @@ > > > > +--- configure.orig 2016-04-09 16:24:17.507053635 +0000 > > > > ++++ configure 2016-04-09 16:25:41.851918142 +0000 > > > > +@@ -4947,6 +4947,9 @@ > > > > + ppc64-*linux*|powerpc64-*linux*) > > > > + LD="${LD-ld} -m elf32ppclinux" > > > > + ;; > > > > ++ ppc64le-*linux*|powerpc64le-*linux*) > > > > ++ LD="${LD-ld} -m elf32lppclinux" > > > > ++ ;; > > > > + s390x-*linux*) > > > > + LD="${LD-ld} -m elf_s390" > > > > + ;; > > > > +@@ -4960,9 +4963,12 @@ > > > > + x86_64-*linux*) > > > > + LD="${LD-ld} -m elf_x86_64" > > > > + ;; > > > > +- ppc*-*linux*|powerpc*-*linux*) > > > > ++ ppc64-*linux*|powerpc64-*linux*) > > > > + LD="${LD-ld} -m elf64ppc" > > > > + ;; > > > > ++ ppc64le-*linux*|powerpc64le-*linux*) > > > > ++ LD="${LD-ld} -m elf64lppc" > > > > ++ ;; > > > > + s390*-*linux*) > > > > + LD="${LD-ld} -m elf64_s390" > > > > + ;; > > > > > > Isn't that the generic kind of problem usually fixed via elibtoolize? > > > > > > > How to fix it via elibtoolize ? Thanks if you give me in detail ;-) > > I don't know the details, I just know it does some random common > patching to configure files. Take a look at libtool.eclass and > ELT-patches. Seems can't fix this in libtool.eclass and ELT-patches. -Leno Hou