Skip to content

Commit

Permalink
smoke_tests: fix Makefile
Browse files Browse the repository at this point in the history
Makefile file was missing a PAPI_ROOT path and also an additional
-pthread in the linker flags.
  • Loading branch information
gcongiu committed Sep 26, 2023
1 parent 07a9851 commit 100881e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/smoke_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ EXECUTABLES = simple threads

CC ?= gcc

PAPIROOT ?= /path/to/papi/install/prefix
CFLAGS ?= -O0 -pthread -I$(PAPIROOT)/include
LIBS = -L$(PAPIROOT)/lib -lm -ldl -lpapi -Wl,-rpath=$(PAPIROOT)/lib
PAPI_ROOT := $(shell dirname $(shell dirname $(shell which papi_component_avail)))
CFLAGS ?= -O0 -pthread -I$(PAPI_ROOT)/include
CPPFLAGS = -I$(PAPI_ROOT)/include
LIBS = -L$(PAPI_ROOT)/lib -lm -ldl -lpapi -Wl,-rpath=$(PAPI_ROOT)/lib -pthread

all: $(EXECUTABLES)

Expand Down

0 comments on commit 100881e

Please sign in to comment.