Hi, At Wed, 23 Aug 2006 09:00:03 +0900, mortench wrote in [ruby-talk:210014]: > # Non-portable way of linking our dynamic extension library with some > static library files > # from digimarc the sdk (".a" on linux). Uses full path since these > files are not affected > # by GCC/g++'s -L path settings. > # BTW: Not sure $LOCAL_LIBS is used correctly here but it works. > staticLibs = ["libBitmapIO", "libDWMEmb", "libDWMRdr", "libIWMPCom", > "libIWMRdr"] > staticLibExtension = ".a" > staticLibs.each { |x| $LOCAL_LIBS = $LOCAL_LIBS + " " + digimarcSdkLib > + "/" + x + staticLibExtension} mkmf support static libraries, of course, by just [BitmapIO DWMEmb DWMRdr IWMPCom libIWMRdr].each {|lib| have_library(lib)} -- Nobu Nakada