diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ruby2d/extconf.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/ruby2d/extconf.rb b/ext/ruby2d/extconf.rb index fb9d0b4..d3ddac0 100644 --- a/ext/ruby2d/extconf.rb +++ b/ext/ruby2d/extconf.rb @@ -74,7 +74,10 @@ end check_s2d_version # Add flags -$CFLAGS << ' -std=c11 -I/usr/local/include' +$CFLAGS << ' -std=c11 -I/usr/local/include' +if `cat /etc/os-release` =~ /raspbian/ # Raspberry Pi + $CFLAGS << ' -I/opt/vc/include' +end $LDFLAGS << ' ' << `bash simple2d --libs` $LDFLAGS.gsub!(/\n/, ' ') # remove newlines in flags, they cause problems |
