From: "Paul E.C. Melis" Date: 2002-03-19T00:44:17+09:00 Subject: Re: Extconf.rb: how to add specific include/lib dirs? Well, you're right.... looks like the Pickaxe book was wrong there... For the errata: P.185 --with--include=dir adds the specified dir to the compile command, NOT dir/include --with--library=dir adds the specified dir to the link command, NOT dir/lib Paul "ts" wrote in message news:200203181332.g2IDWL318914@moulon.inra.fr... > >>>>> "P" == Paul E C Melis writes: > > P> Is it possible to specify a complete include or lib directory that is needed > P> to build an extension, and I don't mean the --with--dir > P> or --with--include ways. > P> These assume that include and library files will always reside in an > P> /include and /lib subdirectory respectively. > > No, this is not true > > pigeon% cat extconf.rb > require 'mkmf' > $CPPFLAGS += " -I#{idir}" if idir = with_config('tt-include-dir') > create_makefile('tt') > pigeon% > > pigeon% ruby extconf.rb --with-tt-include-dir=/tmp > creating Makefile > pigeon% > > pigeon% grep -- -I Makefile > CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir) -I$(prefix)/include -I/tmp > pigeon% > > > > > Guy Decoux >