commit 699213bb8839811acad732d123c16fd795dc2657
parent 855a293c3eb0a0bbd9af82b9a834934369677c0a
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Wed, 24 Jul 2019 00:05:27 +0200
Reorder LDFLAGS in Makefile
Due to the GNU linker being smart, it forgets the symbols that have not been
unresolved yet. Hence, order matters and this is the correct one.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -7,7 +7,7 @@ _CFLAGS = $(CFLAGS) $(PJSIP_CFLAGS)
_LDFLAGS = $(LDFLAGS) $(PJSIP_LDFLAGS)
siproc: src/siproc.o
- $(CPP) $(_CFLAGS) $(_LDFLAGS) -o $@ $^
+ $(CPP) $(_CFLAGS) -o $@ $^ $(_LDFLAGS)
%.o: %.cpp
$(CPP) $(_CFLAGS) -c -o $@ $^