Method: Linker#rpath=

Defined in:
lib/makeconf/linker.rb

#rpath=(dir) ⇒ Object

Override the normal search path for the dynamic linker



53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/makeconf/linker.rb', line 53

def rpath=(dir)
  if Platform.is_solaris?
    @flags.push ['R', dir]
  elsif Platform.is_linux?
    @flags.push ['-rpath', dir]
  elsif Platform.is_windows?
    # XXX-FIXME Windows does not support the rpath concept
    return
  else
    throw 'Unsupported OS'
  end
  @flags.push ['-L', dir]
end