ext/revdispatch/extconf.rb in evdispatch-0.1.4 vs ext/revdispatch/extconf.rb in evdispatch-0.1.5
- old
+ new
@@ -13,20 +13,25 @@
end
system("mkdir libdeps")
# copy the .a files into this folder
system("cp #{libdispatch}/src/.libs/libdispatch.a libdeps")
system("cp #{libdispatch}/#{libev}/.libs/libev.a libdeps")
- system("ranlib libdeps/*.a")
+ if( `uname`.grep(/darwin/i) )
+ puts "running ranlib"
+ system("ranlib libdeps/*.a")
+ end
end
$srcs = ['revdispatch.cc']
$objs = ['revdispatch.o']
# put the header files first
$CPPFLAGS = " -I./#{libdispatch}/ -I./#{libdispatch}/src -I./#{libdispatch}/#{libev}/ #{$CPPFLAGS}"
# link to the static library versions of libdispatch and #{libev}
-#$LDFLAGS << " ./#{libdispatch}/src/.libs/libdispatch.a ./#{libdispatch}/#{libev}/.libs/libev.a "
+if( `uname`.grep(/linux/i) )
+$LDFLAGS << " ./#{libdispatch}/src/.libs/libdispatch.a ./#{libdispatch}/#{libev}/.libs/libev.a "
+end
#$LIBS << " -L./#{libdispatch}/#{libev}/.libs/ -lev"
#$LIBS << " -L./#{libdispatch}/src/.libs/ -ldispatch"
$LIBS << " -Llibdeps -lev -ldispatch"
dir_config("revdispatch")