@@ -110,13 +110,13 @@ def submodules():
110110 out = out .split ('export LDFLAGS="' , 1 )[- 1 ]
111111 ldflags = out .split ('"' , 1 )[0 ]
112112 else :
113- ldflags = f'-L{ alt_path } opt/libffi/lib'
113+ ldflags = f'" -L{ alt_path } opt/libffi/lib" '
114114
115115 if 'export CPPFLAGS=' in out :
116116 out = out .split ('export CPPFLAGS="' , 1 )[- 1 ]
117117 cflags = out .split ('"' , 1 )[0 ]
118118 else :
119- cflags = f'-I{ alt_path } opt/libffi/include'
119+ cflags = f'" -I{ alt_path } opt/libffi/include" '
120120
121121 ret , out = spawn ([[brew_path , 'info' , 'sdl2' ]], out_to_screen = False )
122122
@@ -128,11 +128,11 @@ def submodules():
128128 print (out )
129129 raise RuntimeError ('sdl2 is not installed' )
130130
131- ldflags += f' -L{ alt_path } lib'
132- cflags += f' -I{ alt_path } include'
131+ ldflags += f' " -L{ alt_path } lib" '
132+ cflags += f' " -I{ alt_path } include" '
133133
134- os .environ ['LDFLAGS' ] = f'" { ldflags } " '
135- os .environ ['CFLAGS' ] = f'" { cflags } " '
134+ os .environ ['LDFLAGS' ] = f'{ ldflags } '
135+ os .environ ['CFLAGS' ] = f'{ cflags } '
136136
137137 berkeley_db = os .path .abspath ('lib/micropython/lib/berkeley-db-1.xx/README' )
138138
0 commit comments