Created attachment 120869 [details] [review]
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.
Created attachment 120870 [details] [review]
Part 2, by Adam Conrad
Imake.tmpl is used on systems which use non-GNU make, so can't have GNU-make
specific entries such as:
LDOPTIONS := $(filter-out $(NOTLDOPTIONS),$(LDOPTIONS))
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/util/cf/issues/1.