@@ -110,13 +110,13 @@ def submodules():
110
110
out = out .split ('export LDFLAGS="' , 1 )[- 1 ]
111
111
ldflags = out .split ('"' , 1 )[0 ]
112
112
else :
113
- ldflags = f'-L{ alt_path } opt/libffi/lib'
113
+ ldflags = f'" -L{ alt_path } opt/libffi/lib" '
114
114
115
115
if 'export CPPFLAGS=' in out :
116
116
out = out .split ('export CPPFLAGS="' , 1 )[- 1 ]
117
117
cflags = out .split ('"' , 1 )[0 ]
118
118
else :
119
- cflags = f'-I{ alt_path } opt/libffi/include'
119
+ cflags = f'" -I{ alt_path } opt/libffi/include" '
120
120
121
121
ret , out = spawn ([[brew_path , 'info' , 'sdl2' ]], out_to_screen = False )
122
122
@@ -128,11 +128,11 @@ def submodules():
128
128
print (out )
129
129
raise RuntimeError ('sdl2 is not installed' )
130
130
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" '
133
133
134
- os .environ ['LDFLAGS' ] = f'" { ldflags } " '
135
- os .environ ['CFLAGS' ] = f'" { cflags } " '
134
+ os .environ ['LDFLAGS' ] = f'{ ldflags } '
135
+ os .environ ['CFLAGS' ] = f'{ cflags } '
136
136
137
137
berkeley_db = os .path .abspath ('lib/micropython/lib/berkeley-db-1.xx/README' )
138
138
0 commit comments