Skip to content

Commit

Permalink
replace CFLAGS -> LDFLAGS when linking
Browse files Browse the repository at this point in the history
  • Loading branch information
jg1uaa committed Dec 7, 2023
1 parent 5e4100e commit 5c9d630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ $<
Expand Down

0 comments on commit 5c9d630

Please sign in to comment.