Temporarily force clang if available

GCC10 seems to refuse to link libm. GCC11 and clang seem to work fine.
pull/141/head 0.11.2
lawl 3 years ago
parent a57cc20110
commit c2bfe0202f

@ -2,6 +2,9 @@ UPDATE_URL=https://noisetorch.epicgamer.org
UPDATE_PUBKEY=3mL+rBi4yBZ1wGimQ/oSQCjxELzgTh+673H4JdzQBOk=
VERSION := $(shell git describe --tags)
CLANG := $(shell which clang)
dev: rnnoise
mkdir -p bin/
go generate
@ -27,6 +30,14 @@ release: rnnoise
go run scripts/signer.go -s
git describe --tags > bin/version.txt
rnnoise:
# For some reason gcc10 refuses to link libm
# gcc11 seems to work. Temporarily force clang
# if available until i can fix this properly
ifdef CLANG
cd c/ladspa; \
CC=clang make
else
cd c/ladspa; \
make
endif

@ -1,3 +1,3 @@
default:
$(CC) -Wall -Werror -O2 -c -fPIC ../ringbuf.c ../rnnoise/*.c module.c
$(CC) -Wall -O2 -c -fPIC ../ringbuf.c ../rnnoise/*.c module.c
$(CC) -shared -lm -Wl,--version-script=export.txt -o rnnoise_ladspa.so *.o

Loading…
Cancel
Save