openbsd-ports/textproc/ruby-hyperestraier/patches/patch-rubynative_src_extconf_rb
ajacoutot 407e237302 - make this build again
breakage noticed by naddy@
2009-01-30 21:15:05 +00:00

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')