Is this code in extconf.wrong?

 if CFLAGS.index(CONFIG['CCDLFLAGS'])
   $CFLAGS = CFLAGS
 else
   $CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS']
 end


Isn't the if statement reversed?


Yup, it is.  Is this related to that FreeBSD bug?  -sc

Not sure. In that one -I/usr/local/include wasn't added to the gcc command line so linking to the iconv headers failed.

My fix was for that was adding this line towards the end of extconf.rb:

$INCFLAGS << " -I/usr/local/include"

Brute force I know...

The way the file is setup, you could already do:

ruby extconf.rb --with-incov-dir=/usr/local/include

But it seems like including /usr/local/include is probably a good idea (I hope, let me know if its not).

Charlie


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to