#37235 closed defect (fixed)
gobject-introspection 1.34.1.1 ignores configure.cc and chooses gcc compiler
Reported by: | thijsvermeir@… | Owned by: | neverpanic (Clemens Lang) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), skymoo (Adam Mercer) | |
Port: | gobject-introspection |
Description
gobject-introspection is not using configure.cc as the compiler for internal commands, it defaults to using gcc. This lets other ports fail e.g. GStreamer.
Attachments (1)
Change History (7)
Changed 12 years ago by thijsvermeir@…
Attachment: | gis_no_gcc.diff added |
---|
comment:1 Changed 12 years ago by jmroot (Joshua Root)
Port: | gobject-introspection added |
---|
comment:2 Changed 12 years ago by neverpanic (Clemens Lang)
Owner: | changed from macports-tickets@… to cal@… |
---|---|
Status: | new → assigned |
comment:3 follow-up: 4 Changed 12 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to cal@…:
Thanks for the patch, commited in r100297.
I've previously fixed this in other ports by setting
$CC
; it might still be preferable to set$CC
because the compiler used in a dependent port might not be the one used when buildinggobject-introspection
.
Yes, we still need to set CC at build time in every port using gobject-introspection. Consider a user who is on Snow Leopard with Xcode 4.2 (which does not provide /usr/bin/gcc-4.2) and he receives a binary of gobject-introspection as compiled by our Snow Leopard buildbot, which runs Xcode 3.2.6 and therefore defaults to /usr/bin/gcc-4.2.
The only thing committing this patch does is make it harder for us to realize when we need to set CC other ports. Previously, following the instructions at UsingTheRightCompiler would allow you to discover the problem on any system; now, it's only discoverable on the above rare configuration.
Thanks for the patch, commited in r100297.
I've previously fixed this in other ports by setting
$CC
; it might still be preferable to set$CC
because the compiler used in a dependent port might not be the one used when buildinggobject-introspection
.