Skip to content

Commit

Permalink
Explicitly enable libraries when configuring libsndfile.
Browse files Browse the repository at this point in the history
If pkg-config is installed, then libsndfile's configure will try to
use pkg-config to check whether the optional dependencies (flac, ogg,
vorbis, opus, mpg123) are present.  (It will conclude that the
packages are present because the appropriate *_CFLAGS and *_LIBS are
set.)

If pkg-config isn't installed, then --enable-external-libs and
--enable-mpeg must be set explicitly in order to use these packages.
  • Loading branch information
Benjamin Moody committed Jul 17, 2024
1 parent 732dff9 commit 7ebab6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linux_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ cp lame-$LAMEVERSION/include/*.h lame-$LAMEVERSION/include/lame
curl -LO https://github.com/libsndfile/libsndfile/releases/download/$SNDFILE_VERSION/libsndfile-$SNDFILE_VERSION.tar.xz
tar xvf libsndfile-$SNDFILE_VERSION.tar.xz
cd $SNDFILENAME
./configure --disable-static --disable-sqlite --disable-alsa && make -j$JOBS
./configure --disable-static --disable-sqlite --disable-alsa --enable-external-libs --enable-mpeg
make -j$JOBS
cd ..

cp $SNDFILENAME/src/.libs/libsndfile.so libsndfile.so
Expand Down

0 comments on commit 7ebab6a

Please sign in to comment.