Description: use --as-needed linker flag to avoid unnecessary dependencies Author: Dmitry Borisyuk --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ TARGET = fbxkb $(TARGET): $(OBJ) - $(CC) $(LDFLAGS) $(LIBS) $(OBJ) -o $@ + $(CC) $(LDFLAGS) $(OBJ) -Wl,--as-needed $(LIBS) -o $@ all: $(TARGET)