Class: Inliner::Compilers::GPlusPlus

Inherits:
GCC show all
Defined in:
lib/ffi-inliner/inliner.rb

Instance Attribute Summary

Attributes inherited from Compiler

#progname

Instance Method Summary collapse

Methods inherited from GCC

#cmd, #exists?

Methods inherited from Compiler

check_and_create, #compile, #initialize

Constructor Details

This class inherits a constructor from Inliner::Compilers::Compiler

Instance Method Details

#ldsharedObject



110
111
112
113
114
115
116
# File 'lib/ffi-inliner/inliner.rb', line 110

def ldshared
  if Config::CONFIG['target_os'] =~ /darwin/
    'g++ -dynamic -bundle -fPIC'
  else
    'g++ -shared -fPIC'
  end
end