Re: [libxml-devel] Bug in extconf.rb

2008-07-16 Thread Charlie Savage
${PREFIX}/include is more correct for FreeBSD. PREFIX is a make(1) variable, however, and I don't know how that info gets easily passed to mkmf. It doesn't. mkmf generates the makefile that is run by Make. I think you could probably do something like: incpath = (path + ENV['PATH']).flatt

Re: [libxml-devel] Bug in extconf.rb

2008-07-16 Thread Sean Chittenden
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

Re: [libxml-devel] Bug in extconf.rb

2008-07-16 Thread Charlie Savage
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 add

Re: [libxml-devel] Bug in extconf.rb

2008-07-16 Thread Sean Chittenden
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 -- Sean Chittenden [EMAIL PROTECTED] ___