Skip to content

Commit 5cb78df

Browse files
authored
Merge pull request #84 from ChinYikMing/fix/portaudio_build_macOS
PortAudio: Enable build on macOS/arm64
2 parents 32cbd56 + 2757b2c commit 5cb78df

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ifeq ($(call has, VIRTIOSND), 1)
100100
portaudio/Makefile:
101101
git submodule update --init portaudio
102102
$(PORTAUDIOLIB): portaudio/Makefile
103-
cd $(dir $<) && ./configure --without-sndio
103+
cd $(dir $<) && LDFLAGS="" ./configure --without-sndio
104104
$(MAKE) -C $(dir $<)
105105
main.o: $(PORTAUDIOLIB)
106106

@@ -168,12 +168,12 @@ DTC ?= dtc
168168
E :=
169169
S := $E $E
170170

171-
# During boot process, he emulator manually manages the growth of ticks to
172-
# suppress RCU CPU stall warnings. Thus, we need an target time to set the
171+
# During boot process, the emulator manually manages the growth of ticks to
172+
# suppress RCU CPU stall warnings. Thus, we need an target time to set the
173173
# increment of ticks. According to Using RCU’s CPU Stall Detector[1], the
174-
# grace period for RCU CPU stalls is typically set to 21 seconds.
175-
# By dividing this value by two as the expected completion time, we can
176-
# provide a sufficient buffer to reduce the impact of errors and avoid
174+
# grace period for RCU CPU stalls is typically set to 21 seconds.
175+
# By dividing this value by two as the expected completion time, we can
176+
# provide a sufficient buffer to reduce the impact of errors and avoid
177177
# RCU CPU stall warnings.
178178
# [1] docs.kernel.org/RCU/stallwarn.html#config-rcu-cpu-stall-timeout
179179
CFLAGS += -D SEMU_BOOT_TARGET_TIME=10
@@ -213,6 +213,6 @@ distclean: clean
213213
$(Q)$(RM) riscv-harts.dtsi
214214
$(Q)$(RM) minimal.dtb
215215
$(Q)$(RM) Image rootfs.cpio
216-
$(Q)$(RM) ext4.img
216+
$(Q)$(RM) ext4.img
217217

218218
-include $(deps)

0 commit comments

Comments
 (0)