~ubuntu-branches/ubuntu/trusty/hyperestraier/trusty

« back to all changes in this revision

Viewing changes to rubynative/src/extconf.rb

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2006-11-14 05:28:32 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114052832-0lzqzcefn8mt4yqe
Tags: 1.4.9-1.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Set HOME=$(CURDIR)/junkhome when building, otherwise the package build
  will incorrectly look for headers there -- and fail when the directory
  exists and is unreadable, as happens sometimes on sudo-using
  autobuilders!

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
dir_config('estraier')
4
4
 
5
 
ENV["PATH"] = ENV["PATH"] + "/usr/local/bin:.:..:../.."
 
5
ENV["PATH"] = ENV["PATH"] + ":/usr/local/bin:.:..:../.."
6
6
estcflags = `estconfig --cflags`.chomp
7
7
estldflags = `estconfig --ldflags`.chomp
8
8
estlibs = `estconfig --libs`.chomp
9
 
$CFLAGS = "-I. -I.. -I../.. #{estcflags} -Wall #{$CFLAGS}"
10
 
$LDFLAGS = "#{$LDFLAGS} -L. -L.. -L../.. #{estldflags}"
 
9
$CFLAGS = "-I. -I.. -I../.. #{estcflags} -Wall #{$CFLAGS} -O3 -fomit-frame-pointer -fforce-addr"
 
10
# $LDFLAGS = "#{$LDFLAGS} -L. -L.. -L../.. #{estldflags}"
 
11
$LIBPATH = [".", "..", "../.."]
 
12
$LDFLAGS = "-L. -L.. -L../.. "
11
13
$libs = "#{$libs} #{estlibs}"
12
14
 
13
15
if have_header('estraier.h') and have_library('estraier')