[MacPorts] #37664: gcc46, gcc47 @4.7.2 'init_priority' attribute is not supported on this platform
MacPorts
noreply at macports.org
Thu Jan 17 06:39:06 PST 2013
#37664: gcc46, gcc47 @4.7.2 'init_priority' attribute is not supported on this
platform
--------------------------+----------------------
Reporter: ilg@… | Owner: mww@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: gcc46 gcc47 |
--------------------------+----------------------
Changes (by ilg@…):
* status: closed => reopened
* resolution: invalid =>
Comment:
> Actually, gcc developers are blocked by insufficient support on the host
because OS X's dyld doesn't support this at runtime.
Really? Oops, then I just completed an impossible thing :-)
My opinion is that the above statement about OS X not supporting init
priorities is a thing of the past, as long as programs compiled with
native clang support it without problems, proper support should already be
present since the move to llvm/clang.
To prove this I patched '''gcc/config/darwin.h''' and changed
{{{
#define SUPPORTS_INIT_PRIORITY 1
}}}
Then I successfully built the stock 4.7.2 using clang:
{{{
export CC=clang
export CXX-clang++
./configure ...
make
...
}}}
Could you update the existing Portfile to apply this simple patch and to
use clang/clang++ during build? (it might not be necessary to explicitly
use clang, I don't know now, but I can find out in about one hour)
Liviu
--
Ticket URL: <https://trac.macports.org/ticket/37664#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list