ref: ce770096cd06b1e581b37171f01bee2f25894e8a
parent: 6e278eeef31bcbdf84ce4a14c32cdadee4164871
author: Mans Rullgard <mans@mansr.com>
date: Sun Jan 31 05:59:16 EST 2021
build: use FLAC_CFLAGS FLAC_CFLAGS is required if FLAC is installed outside the normal compiler search path as is often the case on BSD systems.
--- a/src/optional-fmts.am
+++ b/src/optional-fmts.am
@@ -78,6 +78,7 @@
if HAVE_FLAC
if STATIC_FLAC
libsox_la_SOURCES += flac.c
+ libsox_la_CFLAGS += @FLAC_CFLAGS@
if STATIC_LIBSOX_ONLY
sox_LDADD += @FLAC_LIBS@
else
@@ -85,6 +86,7 @@
endif
else
libsox_fmt_flac_la_SOURCES = flac.c
+ libsox_fmt_opus_la_CFLAGS = @FLAC_CFLAGS@
libsox_fmt_flac_la_LIBADD = @FLAC_LIBS@
pkglib_LTLIBRARIES += libsox_fmt_flac.la
endif