xorg/util/cf - option -mminimal-toc on linkage - ppc64el arch
Submitted by Fernando
Assigned to Xorg Project Team
Created attachment 120869 Patch part 1, by Mauricio de Oliveira
On ppc64el, imake passes -mminimal-toc from CCOPTIONS to LDOPTIONS. That causes builds that use it to fail, like so:
ld -shared -o libsciplot.so.1.36 SciPlot.o SciPlotUtil.o -mminimal-toc -lXm [...] -soname libsciplot.so.1 -lc ld: unrecognised emulation mode: minimal-toc Supported emulations: elf64lppc elf32lppc elf32lppclinux elf32lppcsim
elf32ppclinux elf32ppc elf32ppcsim elf64ppc make: *** [shared] Error 1
The above happens on building sciplot on Debian. The full log can be seen at . There is also a bug report on Debian bug tracking system  with a patch.
I applied the patch on the git version of xorg/utils/cf and generated 2 diff files split by authors.
Patch 120869, "Patch part 1, by Mauricio de Oliveira":