From 123bd40fc96949f8b344b2583d7efef48f8a8fd4 Mon Sep 17 00:00:00 2001 From: Marcin Kondej Date: Mon, 4 Jul 2022 01:20:12 +0200 Subject: [PATCH] Linker flags fixed --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index e187b65..66777fa 100644 --- a/makefile +++ b/makefile @@ -7,7 +7,7 @@ ifeq ($(GPIO21), 1) endif all: fm_transmitter.o mailbox.o wave_reader.o transmitter.o - g++ -L/opt/vc/lib -o $(EXECUTABLE) fm_transmitter.o mailbox.o wave_reader.o transmitter.o -lm -lpthread -lbcm_host + g++ -o $(EXECUTABLE) fm_transmitter.o mailbox.o wave_reader.o transmitter.o -L/opt/vc/lib -lm -lpthread -lbcm_host mailbox.o: mailbox.c mailbox.h g++ $(FLAGS) -c mailbox.c