Skip to content

Commit 3ce0643

Browse files
committed
src/make: use -c to compile instead of -r
The build currently warns about building an executable with an object-file extension and recommends to use -c, -shared or -r eventhough we already use -r. I'm not sure what -r is supposed to do, but -c only compiles and not links the input which should be exactly what we want here and using -c gets rid of the warning without any apparent negative effects.
1 parent 25bd926 commit 3ce0643

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# If needed, override the following variables via `make VARNAME=VAL ...`
2-
CXX = em++ -r
2+
# Note: we only compile and not(!) link here, thus -c
3+
CXX = em++ -c
34
CXXFLAGS = -O3 -g4
45
LIBASS_CXXFLAGS = $(shell pkg-config --static --cflags "libass >= 0.14.0")
56
LOCAL_CXXFLAGS = -Wall -Wno-deprecated $(LIBASS_CXXFLAGS)

0 commit comments

Comments
 (0)