]> granicus.if.org Git - strace/commit
Fix cross-compiling of ioctlsort
authorMike Frysinger <vapier@gentoo.org>
Fri, 27 Feb 2015 03:22:36 +0000 (22:22 -0500)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Feb 2015 04:43:06 +0000 (04:43 +0000)
commit58c7fe9903c9f5eb7cfee02a55e844ffe8a1b8e7
tree7f99bc23dbaed9d1dcf17c946c8e820184ba000f
parent977550de794baac058d4368682167fcbebbdf653
Fix cross-compiling of ioctlsort

Use the AX_PROG_CC_FOR_BUILD helper to set up build settings when cross
compiling.  This way ioctlsort uses the build tools all the time.

* configure.ac: Call AX_PROG_CC_FOR_BUILD.
* Makefile.am (ioctlsort_CC): Set to CC_FOR_BUILD.
(ioctlsort_CPPFLAGS): Change CPPFLAGS to CPPFLAGS_FOR_BUILD.
(ioctlsort_CFLAGS): Change CFLAGS to CFLAGS_FOR_BUILD.
(ioctlsort_LDFLAGS): Change LDFLAGS to LDFLAGS_FOR_BUILD.
(ioctlsort_LD): Delete.
(ioctlsort%): Change to ioctlsort%$(BUILD_EXEEXT).  Use ioctlsort_CFLAGS.
* m4/ax_prog_cc_for_build.m4: Import from the autoconf-archive package.
Makefile.am
configure.ac
m4/ax_prog_cc_for_build.m4 [new file with mode: 0644]