Skip to content

Commit

Permalink
pthread linking fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Sep 24, 2024
1 parent b17f41c commit c1d4824
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: sudo gem install coveralls-lcov

- name: Build with with gcov
run: script -q -e -c './build.sh coverage'
run: script -q -E always -e -c './build.sh coverage'

- name: Generate lcov.info and publish to coveralls.io
run: |
Expand Down
1 change: 1 addition & 0 deletions examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ checklist_SOURCES = checklist.cpp
choice_SOURCES = choice.cpp
dialog_SOURCES = dialog.cpp
event_log_SOURCES = event-log.cpp
eventloop_LDADD = -lpthread
eventloop_SOURCES = eventloop.cpp
fullwidth_character_SOURCES = fullwidth-character.cpp
hello_SOURCES = hello.cpp
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++14
MAKEFILE = -f Makefile.clang
LDFLAGS = -L../final -lfinal
LDFLAGS = -L../final -lfinal -lpthread
INCLUDES = -I.. -I/usr/include
RM = rm -f

Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++14
MAKEFILE = -f Makefile.gcc
LDFLAGS = -L../final -lfinal
LDFLAGS = -L../final -lfinal -lpthread
INCLUDES = -I.. -I/usr/include
RM = rm -f

Expand Down
1 change: 0 additions & 1 deletion examples/eventloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ auto main() -> int
sig_abrt_monitor.resume();
stdin_monitor.resume();
backend_monitor.resume();
backend_thread.detach();

// Monitoring
return loop.run();
Expand Down
2 changes: 1 addition & 1 deletion final/Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ INCLUDE_HEADERS = \
CXX = clang++
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++14
MAKEFILE = -f Makefile.clang
LDFLAGS = $(TERMCAP) -lrt -lgpm
LDFLAGS = $(TERMCAP) -lpthread -lrt -lgpm
INCLUDES = -I..
GPM = -D F_HAVE_LIBGPM
VER = -D F_VERSION=\"$(VERSION)\"
Expand Down
2 changes: 1 addition & 1 deletion final/Makefile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ INCLUDE_HEADERS = \
CXX = g++
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++14
MAKEFILE = -f Makefile.gcc
LDFLAGS = $(TERMCAP) -lrt -lgpm
LDFLAGS = $(TERMCAP) -lpthread -lrt -lgpm
INCLUDES = -I..
GPM = -D F_HAVE_LIBGPM
VER = -D F_VERSION=\"$(VERSION)\"
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++14
MAKEFILE = -f Makefile.clang
LDFLAGS = -L../final -lfinal $(TERMCAP) -lcppunit -ldl
LDFLAGS = -L../final -lfinal $(TERMCAP) -lpthread -lcppunit -ldl
INCLUDES = -I. -I.. -I/usr/include
RM = rm -f

Expand Down
2 changes: 1 addition & 1 deletion test/Makefile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++14
MAKEFILE = -f Makefile.gcc
LDFLAGS = -L../final -lfinal $(TERMCAP) -lcppunit -ldl
LDFLAGS = -L../final -lfinal $(TERMCAP) -lpthread -lcppunit -ldl
INCLUDES = -I. -I.. -I/usr/include
RM = rm -f

Expand Down

0 comments on commit c1d4824

Please sign in to comment.