List Info

Thread: Compiling libgcrypt under OS X as universal binary




Compiling libgcrypt under OS X as universal binary
user name
2006-11-09 16:12:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In did compile libgcrypt (SVN trunk) under OSX (arch: i386)
as univeral
binary (both i386 as well as ppc), by configuring it with
this command:

CFLAGS="-arch i386 -arch ppc" ./configure
--disable-shared
- --enable-static --disable-dependency-tracking
--disable-nls --disable-asm

However, compilation failed with error messages similar to
this:
"ar: somefile.a is a fat file (use libtool(1) or
lipo(1) and ar(1) on it)"

I noticed, that libgcrypt comes a long with very old libtool
files. I
had to replace the provided ltmain.sh, config.sub and
config.guess files
with the ones from libtool 1.5.22, which adds support for
fat binaries.

Would it be possible to update these files in the next
libgcrypt version?


Furthermore, I had to modify config.h, I had to add these
lines:
#if defined (__ppc__) || defined(__ppc64__)
#define WORDS_BIGENDIAN 1
#endif

Basically, if creating fat binaries, all files get compiled
twice
automatically, once for i386, once for ppc.


Last but not least, I had to disable src/gcryptrnd.c, it
failed due to
missing pth.h.


Regards,
Tim Kosse
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFFU1OC8N9+lcqiUkURAmoyAKDBOqZyJcNqEQmILxodRQuN8fLybQCg
twUR
H3e21HMRDdsImolPGOzDcHo=
=PHTR
-----END PGP SIGNATURE-----

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-develgnupg.org

http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Compiling libgcrypt under OS X as universal binary
user name
2006-11-12 13:22:24
On Thu,  9 Nov 2006 17:12, tim.kossefilezilla-project.org said:

> I noticed, that libgcrypt comes a long with very old
libtool files. I

> Would it be possible to update these files in the next
libgcrypt version?

We won't do this for libgcrypt 1.2.  However libtool will be
updated
with the release of 1.3. 

> Furthermore, I had to modify config.h, I had to add
these lines:
> #if defined (__ppc__) || defined(__ppc64__)
> #define WORDS_BIGENDIAN 1
> #endif

Updating autoconf should fix this.  Will also be done with
the
next/first release of 1.3.

> Last but not least, I had to disable src/gcryptrnd.c,
it failed due to
> missing pth.h.

This is all under development.

Thanks,

  Werner


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-develgnupg.org

http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )