xorg/util/cf - option -mminimal-toc on linkage - ppc64el arch
Submitted by Fernando
Assigned to Xorg Project Team
Description
Created attachment 120869 Patch part 1, by Mauricio de Oliveira
Hello.
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[2]: *** [shared] Error 1
The above happens on building sciplot on Debian. The full log can be seen at [1]. There is also a bug report on Debian bug tracking system [2] with a patch.
I applied the patch on the git version of xorg/utils/cf and generated 2 diff files split by authors.
Regards
Fernando
[1] https://buildd.debian.org/status/fetch.php?pkg=sciplot&arch=ppc64el&ver=1.36-16&stamp=1410447072 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765370
Patch 120869, "Patch part 1, by Mauricio de Oliveira":
01-ppc64el-cf.diff
Version: git