@@ -245,29 +245,29 @@ fn link_sdl2(target_os: &str) {
245
245
if cfg ! ( feature = "bundled" )
246
246
|| ( cfg ! ( feature = "use-pkgconfig" ) == false && cfg ! ( feature = "use-vcpkg" ) == false )
247
247
{
248
- println ! ( "cargo:rustc-link-lib=SDL2main" ) ;
248
+ println ! ( "cargo:rustc-link-lib=static= SDL2main" ) ;
249
249
if target_os == "windows-msvc" {
250
- println ! ( "cargo:rustc-link-lib=SDL2-static" ) ;
250
+ println ! ( "cargo:rustc-link-lib=static= SDL2-static" ) ;
251
251
} else {
252
- println ! ( "cargo:rustc-link-lib=SDL2" ) ;
252
+ println ! ( "cargo:rustc-link-lib=static= SDL2" ) ;
253
253
}
254
254
255
- // bundled not support the other feature
255
+ // Additional SDL libraries are not supported when using "bundled"
256
256
if !cfg ! ( feature = "bundled" ) {
257
257
if cfg ! ( feature = "gfx" ) {
258
- println ! ( "cargo:rustc-link-lib=SDL2_gfx" ) ;
258
+ println ! ( "cargo:rustc-link-lib=static= SDL2_gfx" ) ;
259
259
}
260
260
261
261
if cfg ! ( feature = "mixer" ) {
262
- println ! ( "cargo:rustc-link-lib=SDL2_mixer" ) ;
262
+ println ! ( "cargo:rustc-link-lib=static= SDL2_mixer" ) ;
263
263
}
264
264
265
265
if cfg ! ( feature = "image" ) {
266
- println ! ( "cargo:rustc-link-lib=SDL2_image" ) ;
266
+ println ! ( "cargo:rustc-link-lib=static= SDL2_image" ) ;
267
267
}
268
268
269
269
if cfg ! ( feature = "ttf" ) {
270
- println ! ( "cargo:rustc-link-lib=SDL2_ttf" ) ;
270
+ println ! ( "cargo:rustc-link-lib=static= SDL2_ttf" ) ;
271
271
}
272
272
}
273
273
}
0 commit comments