Skip to content

Fix build for newer gcc versions #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jrb0001
Copy link

@jrb0001 jrb0001 commented Nov 1, 2018

In addition to fixing the build for newer gcc versions, this also makes StarRuler2.sh executable and adds some generated files to .gitignore.

There is a commit for each change so if you do not want everything, feel free to cherry-pick what you want or ask me to drop everything you don't want.

Closes #69

@DaloLorn
Copy link
Contributor

DaloLorn commented Nov 2, 2018

waves at the familiar name

Copy link

@Quix0r Quix0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far so good, but maybe investigate the MasterServer creation?

@@ -323,7 +323,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.cpp
#Complete binary compile
$(BINDIR)/$(BIN): makelibs $(OBJ_FILES) $(LIB_FILES) $(COPY_LIBS)
@mkdir -p $(BINDIR)
@$(CC) $(CXXFLAGS) $(LDFLAGS) $(OBJ_FILES) $(LIB_FILES) -o $@
@$(CC) $(CXXFLAGS) $(OBJ_FILES) $(LIB_FILES) $(LDFLAGS) -o $@
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was mentioned here: #9

@@ -346,7 +346,7 @@ $(BINDIR)/$(MS_BIN): $(OBJDIR)/master_server.o $(LIBDIR)/libnetwork.a $(LIBDIR)/
@$(CC) $(CXXFLAGS) -lstdc++ -lpthread -lm $^ -o $@

patcher: $(LIB_FILES)
@$(CC) $(CXXFLAGS) $(LDFLAGS) source/patcher/patcher/patcher.cpp $(LIB_FILES) -o $(BINDIR)/Patcher.bin
@$(CC) $(CXXFLAGS) source/patcher/patcher/patcher.cpp $(LIB_FILES) $(LDFLAGS) -o $(BINDIR)/Patcher.bin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the ordering for MasterServer needs this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build the project on unbuntu 18.04
3 participants