From 332771db5ad89eb3f39e6d9cc7a1e92f9fc80409 Mon Sep 17 00:00:00 2001 From: Andreas Gnau <andreas.gnau@iopsys.eu> Date: Fri, 22 Mar 2024 14:07:09 +0000 Subject: [PATCH] Respect LDFLAGS to allow customized link options Some platform may have its own specific link options, e.g. Broadcom. --- Makefile | 2 +- libvoice/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 307ecda..0431e61 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ LIBVOICE: $(MAKE) -C libvoice $(VOICEMNGR): LIBVOICE $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) clean: rm -f *.o $(VOICEMNGR) diff --git a/libvoice/Makefile b/libvoice/Makefile index c25aeb6..22679ac 100644 --- a/libvoice/Makefile +++ b/libvoice/Makefile @@ -29,7 +29,7 @@ all: debug $(LIBVOICE) $(CC) $(CFLAGS) -fPIC -c -o $@ $< $(LIBVOICE): $(OBJS) - $(CC) $(CFLAGS) -shared -o $@ $^ $(LIBS) + $(CC) $(CFLAGS) -shared $(LDFLAGS) -o $@ $^ $(LIBS) clean: rm -f *.o $(LIBVOICE) -- GitLab