Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 9df1dbe

Browse files
committed
fixed static link of boinc libs
1 parent c58eb78 commit 9df1dbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ CC = g++
1414
CFLAGS = -g -static -pthread -std=c++17 -Wall
1515
# Address Sanitizer (ASan) can't use -static
1616
CDEBUG = -fsanitize=address -ggdb3 -pthread -std=c++17 -Wall
17-
INCLUDES = -I../boinc-install/include
18-
LIBDIR = -L../boinc-install/lib
17+
INCLUDES = -I../boinc-install/include
18+
LIBDIR = ../boinc-install/lib
1919
LIBS = -lboinc_api -lboinc_zip -lboinc
2020

2121

2222
all: $(TARGET) $(DEBUG)
2323

2424
$(TARGET): $(SRC)
25-
$(CC) $(SRC) $(CFLAGS) $(INCLUDES) $(LIBDIR) $(LIBS) -o $(TARGET)
25+
$(CC) $(SRC) $(CFLAGS) $(INCLUDES) -L$(LIBDIR) $(LIBS) -o $(TARGET)
2626

2727
$(DEBUG): $(SRC)
28-
$(CC) $(SRC) $(CDEBUG) $(INCLUDES) $(LIBDIR) $(LIBS) -o $(DEBUG)
28+
$(CC) $(SRC) $(CDEBUG) $(INCLUDES) $(LIBDIR)/libboinc_api.a $(LIBDIR)/libboinc_zip.a $(LIBDIR)/libboinc.a -o $(DEBUG)
2929

3030
clean:
3131
$(RM) *.o $(TARGET) $(DEBUG)

0 commit comments

Comments
 (0)