Revision 8ca14d32
Added by mlenk about 2 years ago
| Makefile.am | ||
|---|---|---|
|
distclean-local-check:
|
||
|
rm -rf apidoc gwenhywfar5
|
||
|
|
||
|
listdoc.h: $(top_builddir)/admin/mklistdoc
|
||
|
admin/mklistdoc -v -I $(top_srcdir)/src/base `find "$(top_builddir)/gwenhywfar5/gwenhywfar" -name "*.h" | LC_ALL=C sort` >listdoc.h
|
||
|
if CROSS_COMPILING
|
||
|
mklistdoc_preqreq =
|
||
|
mklistdoc_exe = mklistdoc
|
||
|
else
|
||
|
mklistdoc_prereq = $(top_builddir)/admin/mklistdoc
|
||
|
mklistdoc_exe = admin/mklistdoc
|
||
|
endif
|
||
|
listdoc.h: $(mklistdoc_prereq)
|
||
|
$(mklistdoc_exe) -v -I $(top_srcdir)/src/base `find "$(top_builddir)/gwenhywfar5/gwenhywfar" -name "*.h" | LC_ALL=C sort` >$@
|
||
|
|
||
|
$(top_builddir)/admin/mklistdoc:
|
||
|
$(MAKE) -C "$(top_builddir)/admin" mklistdoc
|
||
Also available in: Unified diff
Fix cross compilation
libgwenhywfar failed to cross build from source, because it fails running
mklistdoc with an "Exec format error". This happens when attempting to
run a tool that is built for the host architecture. mklistdoc really
needs to be built for the host architecture, because it is installed
into gwenhywfar-tools. On the flip side that means that we can just run
the mklistdoc from a system gwenhywfar-tools. Note that this change only
affects cross compilation. In native builds, the built mklistdoc will
continue to be used.
These changes were initially reported by Helmut Grohne <helmut@subdivi.de> via
the Debian bug tracker (see https://bugs.debian.org/1051173).