Skip to content

Commit 6c97dbb

Browse files
committed
Remove dependency on pthread
1 parent 174e445 commit 6c97dbb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CXXFLAGS += -O3 $(ARCHFLAGS) -Wall -I. -std=c++11
88
DEBUGFLAGS += -O0 $(ARCHFLAGS) -Wall -I. -std=c++11 -g -DDEBUG
99
# DEBUGFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment
1010

11-
LIBS = -lpthread
11+
1212

1313
CFLAGS = -O3
1414

@@ -25,13 +25,13 @@ argtable3.o:
2525
$(CC) -c $(CFLAGS) contrib/argtable3.c
2626

2727
tspg: $(DEPS) $(OBJS)
28-
$(GPP) $(CXXFLAGS) $(DISABLEWARN) main.cpp $(LIBS) $(OBJS) -o tspg
28+
$(GPP) $(CXXFLAGS) $(DISABLEWARN) main.cpp $(OBJS) -o tspg
2929

3030
tspg_debug: $(DEPS) $(OBJS)
31-
$(GPP) $(DEBUGFLAGS) $(DISABLEWARN) main.cpp $(LIBS) $(OBJS) -o tspg_debug
31+
$(GPP) $(DEBUGFLAGS) $(DISABLEWARN) main.cpp $(OBJS) -o tspg_debug
3232

3333
tspg_debug2: $(DEPS) $(OBJS)
34-
$(GPP) $(DEBUGFLAGS) $(DISABLEWARN) main.cpp $(LIBS) $(OBJS) -o tspg_debug2
34+
$(GPP) $(DEBUGFLAGS) $(DISABLEWARN) main.cpp $(OBJS) -o tspg_debug2
3535

3636

3737
clean:

main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* If not, see <http://www.gnu.org/licenses/lgpl.html>.
1313
*******************************************************************************/
1414
#include <stdio.h>
15-
#include <pthread.h>
1615
#include "contrib/argtable3.h"
1716
#include <sys/mman.h> // mmap, munmap
1817

python/py_interf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <stdio.h>
77

88
#include <stdio.h>
9-
#include <pthread.h>
109
#include "contrib/argtable3.h"
1110
#include <sys/mman.h> // mmap, munmap
1211

0 commit comments

Comments
 (0)