We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30033c1 commit 064a6f3Copy full SHA for 064a6f3
setup.py
@@ -60,6 +60,10 @@
60
long_description = file.read()
61
62
63
+def remove_empty(li):
64
+ return [el for el in li if el]
65
+
66
67
def get_sdl_cflags():
68
cflags = []
69
if IS_LIN or IS_MAC:
@@ -71,7 +75,7 @@ def get_sdl_cflags():
71
75
"-Wformat-security",
72
76
]
73
77
# Add cflags from environment
74
- cflags += os.getenv("CFLAGS", "").split(" ")
78
+ cflags += remove_empty(os.getenv("CFLAGS", "").split(" "))
79
80
return cflags
81
@@ -83,7 +87,7 @@ def get_sdl_ldflags():
83
87
elif IS_WIN:
84
88
ldflags = ["/NXCompat", "/DynamicBase"]
85
89
# Add ldflags from environment
86
- ldflags += os.getenv("LDFLAGS", "").split(" ")
90
+ ldflags += remove_empty(os.getenv("LDFLAGS", "").split(" "))
91
92
return ldflags
93
0 commit comments