Subject: Build status on Mac with gcc and clang

Build status on Mac with gcc and clang

From: Joachim Strömbergson <Joachim_at_strombergson.com>
Date: Fri, 16 Apr 2010 10:16:47 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aloha!

FYI: 1.2.5. builds nicely on MacOSX 10.6.3 with the default gcc compiler
4.2.1.

In order to check build system portability also tried with the new llvm
based clang compiler.

http://en.wikipedia.org/wiki/Clang

The result was actually quite boring - it just went through the build
without any problems. The only warning I get is during build of examples:

clang: warning: argument unused during compilation: '-DLIBSSH2_DARWIN'

The clang compiler (and backen) does (imho) a much better job att
tracking down problems than gcc, and it includes among other thing a
very good static analyzer. I thought it might be interesting for the
libbsh2 project to get feedback from a build with all checks running.

I tried to set CFLAGS=Wall as parameter to the configure script, but
then it didn't want to create a working build env:

checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/Users/js/tmp/untar/libssh2-1.2.5':
configure: error: C compiler cannot create executables

Darn.

Is this the right way to enable warning flags, pedantic etc to the
libssh2 build?

- --
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
Kryptoblog - IT-säkerhet på svenska
http://www.strombergson.com/kryptoblog
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvIHO8ACgkQZoPr8HT30QEnswCg3mlSJIg22vuomIX/dwHdVFcY
dPcAnjkL9BoCyz/EvkIKePpq5ErqzKuf
=2N6/
-----END PGP SIGNATURE-----
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-16