sync_add_and_fetch problem
Brian Dessent
brian@dessent.net
Thu Dec 4 17:18:00 GMT 2008
Charles Crisler wrote:
> gcc -shared -fPIC -march=i486 -g -Wl,--version-script=merlotcore.ver -o
> $@ $^ $(XLIBS)
That is the command used to link the program, apparently. -march at
that point is irrelevant. It needs to be specified when the object is
compiled.
Also, regarding the difference between Fedora and Ubuntu: it is possible
to change the default setting of -march when configuring gcc itself.
The Debian gcc package maintainers (and hence also Ubuntu) do this to
set i486 as the default, IIRC. Apparently the Fedora gcc packagers do
not. In any case, it's still a bug to rely on features of a particular
arch and then assume that arch has been selected by the toolchain.
Brian
More information about the Gcc-help
mailing list