407e237302
breakage noticed by naddy@
20 lines
824 B
Plaintext
20 lines
824 B
Plaintext
$OpenBSD: patch-rubynative_src_extconf_rb,v 1.2 2009/01/30 21:15:05 ajacoutot Exp $
|
|
--- rubynative/src/extconf.rb.orig Thu Apr 12 03:52:50 2007
|
|
+++ rubynative/src/extconf.rb Fri Jan 30 21:57:25 2009
|
|
@@ -3,12 +3,9 @@ require "mkmf"
|
|
dir_config('estraier')
|
|
|
|
ENV["PATH"] = ENV["PATH"] + ":/usr/local/bin:.:..:../.."
|
|
-estcflags = `estconfig --cflags`.chomp
|
|
-estldflags = `estconfig --ldflags`.chomp
|
|
-estlibs = `estconfig --libs`.chomp
|
|
-$CFLAGS = "-I. -I.. -I../.. #{estcflags} -Wall #{$CFLAGS} -O3 -fomit-frame-pointer -fforce-addr"
|
|
-$LDFLAGS = "#{$LDFLAGS} -L. -L.. -L../.. #{estldflags}"
|
|
-$libs = "#{$libs} #{estlibs}"
|
|
+$CFLAGS = "#{$CFLAGS} -fomit-frame-pointer -fforce-addr"
|
|
+$LDFLAGS = "#{$LDFLAGS} -pthread"
|
|
+$libs = "#{$libs}"
|
|
|
|
if have_header('estraier.h') and have_library('estraier')
|
|
create_makefile('estraier')
|