-lX11 needs to be at the end when linking

This commit is contained in:
Hristo Asenov 2018-01-17 16:47:30 -07:00
parent d023bd7f58
commit 9703b88a1d
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ $(objects): %.o: %.cpp $(headers)
$(CXX) $(CXXFLAGS) -Wall -c -o $@ $<
$(program): $(objects)
$(CXX) $(CXXFLAGS) -lX11 $(LDFLAGS) -o $@ $^
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -lX11
clean:
rm -f $(program) $(objects)