Summary: | headers-standalone target is incorrect for some non-gcc compilers | ||
---|---|---|---|
Product: | cairo | Reporter: | Tim Mooney <Tim.Mooney> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | minor | ||
Priority: | medium | CC: | freedesktop |
Version: | 1.10.2 | ||
Hardware: | Other | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
augment headers-standalone to work with additional compilers
updated patch that uses a different tmp filename and doesn't use -I $(srcdir) for includes |
Description
Tim Mooney
2011-02-07 16:25:43 UTC
Looks good. How about this minor variation: - $(COMPILE) -o /dev/null $(srcdir)/$$f || status=false; \ + echo "#include \"$(srcdir)/$$f\"" > conftest-headers.c; \ + echo "int main(int argc, char * argv[]) {}" >> conftest-headers.c; \ + $(COMPILE) -o /dev/null headers-standalone-tmp.c || status=false; \ + $(RM) headers-standalone-tmp.c; \ Lines 1 & 2 of your patch still uses conftest-headers.c for the filename, but lines 3 & 4 use headers-standalone-tmp.c. I didn't understand how that could work, so I changed all the lines to headers-standalone-tmp.c and made your suggested change for how the include is handled, and those changes appears to work well. Updated patch will be added momentarily. Created attachment 43273 [details] [review] updated patch that uses a different tmp filename and doesn't use -I $(srcdir) for includes (In reply to comment #3) > Created an attachment (id=43273) [details] > updated patch that uses a different tmp filename and doesn't use -I $(srcdir) > for includes Looks good. Thanks. Committed to master. |
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.