Problems building on SunOS

Zack Weinberg zack at
Fri Sep 4 17:48:45 CEST 1998

On Fri, 4 Sep 1998 16:26:44 -0400 (EDT), "Paul D. Smith" wrote:
>%% Brian Warner <warner at> writes:
>  bw>  tiger.c, uses a long long multiply which, when compiled for a
>  bw>  sparc, requires a function from -lgcc called __muldi3. Because
>  bw>  tiger.c is compiled directly into a shared object, and because
>  bw>  libgcc.a is not shared, tiger (the shared object) doesn't get
>  bw>  __muldi3 included in it.
>Doh!  _That's_ what caused that.  I saw this too but didn't see any
>obvious reason and I didn't get around to finding the problem.

I don't have the source code in front of me, but this problem might go
away if you add -lgcc to the linker command line when building the
shared object.  If you make the shared object with gcc -shared it
ought to do that automatically.  (You may also need magic flags for
the linker.)


More information about the Gnupg-devel mailing list