summaryrefslogtreecommitdiff
path: root/devel/ruby-sdl/files/patch-extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--devel/ruby-sdl/files/patch-extconf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/ruby-sdl/files/patch-extconf.rb b/devel/ruby-sdl/files/patch-extconf.rb
index d0afb4ce6108..e92ab83a6e3e 100644
--- a/devel/ruby-sdl/files/patch-extconf.rb
+++ b/devel/ruby-sdl/files/patch-extconf.rb
@@ -1,5 +1,5 @@
--- extconf.rb.orig Sun Mar 25 17:10:56 2001
-+++ extconf.rb Tue Mar 27 01:16:54 2001
++++ extconf.rb Tue Mar 27 02:56:07 2001
@@ -1,7 +1,9 @@
require 'mkmf'
@@ -7,8 +7,8 @@
-$LDFLAGS += `sdl-config --libs`.chomp
+sdl_config = with_config('sdl-config', 'sdl-config')
+
-+$CFLAGS += `#{sdl_config} --cflags`.chomp
-+$LDFLAGS += `#{sdl_config} --libs`.chomp
++$CFLAGS += ' ' + `#{sdl_config} --cflags`.chomp
++$LDFLAGS += ' ' + `#{sdl_config} --libs`.chomp
if have_library("SDL_mixer","Mix_OpenAudio") then
$CFLAGS+= " -D HAVE_SDL_MIXER "