11diff --git a/tools/ports/sdl2_image.py b/tools/ports/sdl2_image.py
2- index 7a7d0aa..145bc6d 100644
2+ index f4a358b..d1fea5d 100644
33--- a/tools/ports/sdl2_image.py
44+++ b/tools/ports/sdl2_image.py
5- @@ -18,7 +18,8 @@ variants = {
6- }
5+ @@ -18,6 +18,7 @@ variants = {
76
87 OPTIONS = {
9- - 'formats': 'A comma separated list of formats (ex: --use-port=sdl2_image:formats=png,jpg)'
10- + 'formats': 'A comma separated list of formats (ex: --use-port=sdl2_image:formats=png,jpg)',
8+ 'formats': 'A comma separated list of formats (ex: --use-port=sdl2_image:formats=png,jpg)',
119+ 'mt': 'use pthread'
1210 }
1311
1412 SUPPORTED_FORMATS = {'avif', 'bmp', 'gif', 'jpg', 'jxl', 'lbm', 'pcx', 'png',
15- @@ -26,7 +27,8 @@ SUPPORTED_FORMATS = {'avif', 'bmp', 'gif', 'jpg', 'jxl', 'lbm', 'pcx', 'png',
16-
13+ @@ -26,6 +27,7 @@ SUPPORTED_FORMATS = {'avif', 'bmp', 'gif', 'jpg', 'jxl', 'lbm', 'pcx', 'png',
1714 # user options (from --use-port)
1815 opts: Dict[str, Set] = {
19- - 'formats': set()
20- + 'formats': set(),
16+ 'formats': set(),
2117+ 'mt': 0
2218 }
2319
2420
25- @@ -44 ,7 +46 ,7 @@ def get_lib_name(settings):
21+ @@ -43 ,7 +45 ,7 @@ def get_lib_name(settings):
2622 libname = 'libSDL2_image'
2723 if formats != '':
2824 libname += '-' + formats
@@ -31,7 +27,7 @@ index 7a7d0aa..145bc6d 100644
3127 libname += '-mt'
3228 if settings.SUPPORT_LONGJMP == 'wasm':
3329 libname += '-wasm-sjlj'
34- @@ -76 ,7 +78 ,7 @@ def get(ports, settings, shared):
30+ @@ -73 ,7 +75 ,7 @@ def get(ports, settings, shared):
3531 if 'jpg' in formats:
3632 flags += ['-sUSE_LIBJPEG']
3733
@@ -40,7 +36,7 @@ index 7a7d0aa..145bc6d 100644
4036 flags += ['-pthread']
4137
4238 if settings.SUPPORT_LONGJMP == 'wasm':
43- @@ -111 ,6 +113 ,12 @@ def handle_options(options, error_handler):
39+ @@ -108 ,6 +110 ,12 @@ def handle_options(options, error_handler):
4440 else:
4541 opts['formats'].add(format)
4642
0 commit comments