class Autorake::Linker

Public Class Methods

new(libdirs, libs, *args) click to toggle source
# File lib/autorake/compile.rb, line 89
def initialize libdirs, libs, *args
  @libdirs = libdirs.map { |d| "-Wl,-L#{d}" }
  @libs = libs.map { |d| "-Wl,-l#{d}" }
  @args = args
  e = ENV[ "LDFLAGS"]
  @ldflags = e.split if e
end

Public Instance Methods

build(bin, *objs) click to toggle source
Calls superclass method Autorake::Builder#build
# File lib/autorake/compile.rb, line 97
def build bin, *objs
  io = [ "-o", bin.to_s, objs]
  super @ldflags, @libdirs, @libs, @args, io
end