Summary: | Xlib won't cross compile | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Ian Romanick <idr> | ||||||
Component: | Lib/Xlib | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | high | CC: | daniel, hs4233, joerg, maarten.ter.huurne, OdinsHorse, pierre-bugzilla | ||||||
Version: | git | Keywords: | patch | ||||||
Hardware: | x86 (IA32) | ||||||||
OS: | Linux (All) | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Ian Romanick
2006-04-20 05:38:17 UTC
Created attachment 5388 [details] [review] Ugly patch to build makekeys when crosscompiling This the patch mentioned in the initial bug report. Cross-compiling is a bit of a horror show minefield that is incredibly difficult to get right, with any build system. If Scratchbox continues to annoy me here, I'll start looking into making the whole stack cross-compilable. *** Bug 6214 has been marked as a duplicate of this bug. *** Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. should be fixed since 1.1.99.2 *** Bug 13463 has been marked as a duplicate of this bug. *** *** Bug 16484 has been marked as a duplicate of this bug. *** *** Bug 20981 has been marked as a duplicate of this bug. *** This is still broken. It uses the native gcc, but it uses LIBS and CFLAGS for the host system. LIBS can probably be forced to "", but CFLAGS is another matter. We need to access the X11 headers, but we want the native stdio and such. Not sure how to solve it. Created attachment 29415 [details] [review] libX11-cross-fix-1.2.2.patch I managed to fix this. It appears that the dependency on the X11 libs is very superficial, and we can avoid the dependency by pulling in the relevant portions directly into makekeys.c. Included is a patch that clears out CFLAGS and LIB and modifies makekeys.c to build without the X11 headers. I think this is fixed. Please send a patch to xorg-devel@lists.x.org if it is not. Putting patches on bugzilla is a great way for them to get lost. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.