Skip to content

Instantly share code, notes, and snippets.

@josephruscio
Created September 30, 2009 18:08
Show Gist options
  • Save josephruscio/198306 to your computer and use it in GitHub Desktop.
Save josephruscio/198306 to your computer and use it in GitHub Desktop.
#Forcing mkmf to include a library when the simplistic test used by
#have_library fails
require 'mkmf'
dir_config('foo')
if have_header('foo.h') and
$libs = append_library($libs, 'foo')
then
create_makefile('wrapfoo')
else
puts "foo SDK not found!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment