Skip to content
Snippets Groups Projects
Commit 8e16f5e7 authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Modified $CFLAGS and $LDFLAGS in extconf.rb for OS X.

I added -I/usr/local/include to $CFLAGS and -L/usr/local/lib to
$LDFLAGS for the Darwin build, so that it would find the jpeg and
tiff libs on my system.
parent 9a27cf31
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ def do_rake_compiler_setup
elsif RUBY_PLATFORM =~ /darwin/
$CFLAGS = $CFLAGS + " -I/usr/X11/include" # for built-in libpng
$LDFLAGS = $LDFLAGS + " -L/usr/X11/lib" # for built-in libpng
$CFLAGS = $CFLAGS + " -I/usr/local/include" # for libjpeg and libtiff
$LDFLAGS = $LDFLAGS + " -L/usr/local/lib" # for libjpeg and libtiff
end
$libs = append_library($libs, "stdc++")
have_header("sys/time.h") unless RUBY_PLATFORM =~ /mingw/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment