Re: sync_add_and_fetch problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux