diff --git a/Formula/sdl_mixer.rb b/Formula/sdl_mixer.rb index 18b4707a0b..8b58f1777f 100644 --- a/Formula/sdl_mixer.rb +++ b/Formula/sdl_mixer.rb @@ -43,8 +43,10 @@ class SdlMixer < Formula test do testpath.install resource("playwave") system ENV.cc, "-o", "playwave", "playwave.c", "-I#{include}/SDL", - "-I#{Formula["sdl"].opt_include}/SDL", "-lSDL_mixer", - "-lSDLmain", "-lSDL", "-Wl,-framework,Cocoa" + "-I#{Formula["sdl"].opt_include}/SDL", + "-L#{lib}", "-lSDL_mixer", + "-L#{Formula["sdl"].lib}", "-lSDLmain", "-lSDL", + "-Wl,-framework,Cocoa" system "SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk ./playwave #{test_fixtures("test.wav")}" assert_predicate testpath/"sdlaudio.raw", :exist? end