From 02c22eceead87afc15c2e851da141137648d5c86 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 24 Mar 2024 07:41:49 +0000 Subject: [PATCH] source/SoundTouchDLL: don't clobber CXXFLAGS, LDFLAGS automake warns about this, telling us to set AM_CXXFLAGS and AM_LDFLAGS instead. This fixes respecting LDFLAGS in particular (the CXXFLAGS one was harmless). Signed-off-by: Sam James --- source/SoundTouchDLL/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SoundTouchDLL/Makefile.am b/source/SoundTouchDLL/Makefile.am index f867184..4909763 100644 --- a/source/SoundTouchDLL/Makefile.am +++ b/source/SoundTouchDLL/Makefile.am @@ -34,7 +34,7 @@ libSoundTouchDll_la_SOURCES=../SoundTouch/AAFilter.cpp ../SoundTouch/FIRFilter.c # Compiler flags # Modify the default 0.0.0 to LIB_SONAME.0.0 -LDFLAGS=-version-info @LIB_SONAME@ +AM_LDFLAGS=$(LDFLAGS) -version-info @LIB_SONAME@ if X86 CXXFLAGS1=-mstackrealign -msse @@ -44,4 +44,4 @@ if X86_64 CXXFLAGS2=-fPIC endif -CXXFLAGS+=$(AM_CXXFLAGS) $(CXXFLAGS1) $(CXXFLAGS2) -shared -DDLL_EXPORTS -fvisibility=hidden +AM_CXXFLAGS=$(CXXFLAGS) $(CXXFLAGS1) $(CXXFLAGS2) -shared -DDLL_EXPORTS -fvisibility=hidden