openbsd-ports/textproc/ruby-hyperestraier/patches/patch-rubynative_src_extconf_rb
bernd 72db6defae Link with -lpthread to make it work again.
Reported and tested by maintainer Jeremy Evans.
2009-11-09 17:45:24 +00:00

23 lines
854 B
Plaintext

$OpenBSD: patch-rubynative_src_extconf_rb,v 1.3 2009/11/09 17:45:24 bernd Exp $
Use -lpthread to make it work.
--- 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} -lpthread"
+$libs = "#{$libs}"
if have_header('estraier.h') and have_library('estraier')
create_makefile('estraier')