From 5c9d63052bde063a47731080273542e911eb9306 Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Thu, 7 Dec 2023 14:26:23 +0900 Subject: [PATCH] replace CFLAGS -> LDFLAGS when linking --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2d8de071..aa7dec76 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,10 @@ OBJECTS = \ all: MMDVMHost RemoteCommand MMDVMHost: GitVersion.h $(OBJECTS) - $(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o MMDVMHost + $(CXX) $(OBJECTS) $(LDFLAGS) $(LIBS) -o MMDVMHost RemoteCommand: Log.o RemoteCommand.o UDPSocket.o - $(CXX) Log.o RemoteCommand.o UDPSocket.o $(CFLAGS) $(LIBS) -o RemoteCommand + $(CXX) Log.o RemoteCommand.o UDPSocket.o $(LDFLAGS) $(LIBS) -o RemoteCommand %.o: %.cpp $(CXX) $(CFLAGS) -c -o $@ $<