Skip to content

Commit a431dac

Browse files
committed
Fixed linking order in makefile
1 parent 2d7c130 commit a431dac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ CFLAGS := -std=c++14 -Iinclude/ $(PRODFLAGS)
2020
LINK := -lpthread -lkqueue $(PRODFLAGS)
2121
else
2222
# OSX / BSD Flags
23-
CFLAGS := -std=c++14 -stdlib=libc++ -Iinclude/ $(PRODFLAGS)
24-
LINK := -stdlib=libc++ $(PRODFLAGS)
23+
CFLAGS := -std=c++14 -Iinclude/ $(PRODFLAGS)
24+
LINK := $(PRODFLAGS)
2525
endif
2626

2727

@@ -30,7 +30,7 @@ SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT))
3030
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o))
3131

3232
$(TARGET): $(OBJECTS)
33-
@echo " Linking..."; $(CC) $(LINK) $^ -o $(BINDIR)/$(TARGET)
33+
@echo " Linking..."; $(CC) $^ $(LINK) -o $(BINDIR)/$(TARGET)
3434

3535
$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT)
3636
@mkdir -p $(BUILDDIR)

0 commit comments

Comments
 (0)