Move required libs after the object file for the shared lib compilation.
[ffmpeg.git] / vhook / Makefile
index 25fdcf315cef94445adc135adb47641d0601fcaf..60ff0bede088cdc40b76faf1f7a33adeb53c1e2a 100644 (file)
@@ -35,7 +35,7 @@ uninstall:
        -rmdir "$(shlibdir)/vhook/"
 
 %$(SLIBSUF): %.o
-       $(CC) $(LDFLAGS_$@) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $<
+       $(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $< $(LDFLAGS_$@)
 
 clean:
        rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll