Straight-forward change, no cppflags necessary.
faad_ldflags := @faad_ldflags@
mad_ldflags := @mad_ldflags@
flac_ldflags := @flac_ldflags@
+oss_ldflags := @oss_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
para_recv para_afh para_play para_server: LDFLAGS += $(id3tag_ldflags)
para_audiod para_filter para_play: LDFLAGS += $(mad_ldflags)
+para_write para_play para_audiod para_fade: LDFLAGS += $(oss_ldflags)
para_server \
para_filter \
default_mixer="OSS_MIX"
AC_CHECK_LIB(ossaudio, _oss_ioctl, [
- audiod_ldflags="$audiod_ldflags -lossaudio"
- play_ldflags="$play_ldflags -lossaudio"
- write_ldflags="$write_ldflags -lossaudio"
- fade_ldflags="$fade_ldflags -lossaudio"
+ oss_ldflags="-lossaudio"
+ AC_SUBST(oss_ldflags)
]
)
],