URL: <http://savannah.gnu.org/bugs/?43223>
Summary: Patches for cross-compilation support Project: GNU Screen Submitted by: maartenth Submitted on: Mon 15 Sep 2014 02:17:52 AM GMT Category: Build/Install Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 4.2.1 Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Details: To be able to cross-compile Screen, two restrictions must be applied to configure script: - no compiled programs can be run, since they are probably for an incompatible architecture - no information about the host file system must be used, since that information is not representative of the target I modified the configure script (configure.in) to take these restrictions into account, see attached patches. I tried to provide sensible defaults for the information that can not be probed when cross-compiling. Patch 0005 will also affect native builds, but I think it is for the better if Linux is not identified as SVR4. ;) Note that patch 0003 relies on earlier patches being applied: there are AC_TRY_RUN instances removed by patch 0001 (see bug 43222) and patch 0002 (this bug). If for some reason you don't want to apply those patches, a cross-compile argument would have to be added to those AC_TRY_RUN instances in patch 0003. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 15 Sep 2014 02:17:52 AM GMT Name: 0002-Removed-redundant-compiler-sanity-checks.patch Size: 2kB By: maartenth git formatted patches <http://savannah.gnu.org/bugs/download.php?file_id=32097> ------------------------------------------------------- Date: Mon 15 Sep 2014 02:17:52 AM GMT Name: 0004-When-cross-compiling-skip-checks-that-look-in-the-ho.patch Size: 4kB By: maartenth git formatted patches <http://savannah.gnu.org/bugs/download.php?file_id=32098> ------------------------------------------------------- Date: Mon 15 Sep 2014 02:17:52 AM GMT Name: 0003-Provide-cross-compilation-alternatives-for-all-AC_TR.patch Size: 4kB By: maartenth git formatted patches <http://savannah.gnu.org/bugs/download.php?file_id=32099> ------------------------------------------------------- Date: Mon 15 Sep 2014 02:17:52 AM GMT Name: 0005-Avoid-mis-identifying-systems-as-SVR4.patch Size: 2kB By: maartenth git formatted patches <http://savannah.gnu.org/bugs/download.php?file_id=32100> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43223> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/