Skip to content

Commit f26f174

Browse files
committed
Debug
1 parent 746f89c commit f26f174

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mk/check-libs.mk

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ endef
1313
# Create a mininal PulseAudio program
1414
define create-pa-prog
1515
echo '\
16-
#include <pulse/pulseaudio.h>\n\
16+
#include <pulse/mainloop.h>\n\
1717
int main(){\n\
18-
pa_mainloop *m = NULL;\n\
19-
pa_mainloop_free(m);\n\
18+
pa_mainloop *m;\n\
2019
return 0;\n\
2120
}\n'
2221
endef
@@ -41,8 +40,7 @@ endef
4140

4241
# Check PulseAudio installation
4342
define check-pa
44-
$(shell $(call create-pa-prog) | $(CC) -x c -lpulse -o /dev/null
45-
&& echo 1 || echo 0)
43+
$(shell $(call create-pa-prog) | $(CC) -x c -lpulse -o /dev/null - && echo 0 || echo 1)
4644
endef
4745

4846
# Check CoreAudio installation

0 commit comments

Comments
 (0)