File: extconf.rb

package info (click to toggle)
gearman-interface 0.13.2-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,432 kB
  • ctags: 1,528
  • sloc: sh: 10,756; ansic: 6,769; python: 244; makefile: 124; ruby: 45
file content (20 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'mkmf'

HERE = File.expand_path(File.dirname(__FILE__))

$CPPFLAGS = $CFLAGS = $LDFLAGS = ""
$LDFLAGS = " -L/usr/local/lib -lstdc++ -lm -lc -lgcc_s"

if ENV['DEBUG']
  puts "Setting debug flags for gem."
  $CPPFLAGS << " -O0 -g"
else
  $CPPFLAGS << "-O4"
end

if have_header('libgearman/gearman.h')
  if have_library('gearman','gearman_version')
    create_makefile 'gearman'
  end
end