Skip to content

Commit

Permalink
ci: libthapi-ctl int test don't use rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
bd4 committed Jun 4, 2024
1 parent ff1eff5 commit 1b2b728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions integration_tests/libthapi-ctl.bats
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ setup_file() {
objdump -p hello-cl-startstop)

export THAPI_TEST_BIN=$(pwd)/integration_tests/libthapi-ctl/hello-cl-startstop
export LD_LIBRARY_PATH=$THAPI_HOME/lib:$LD_LIBRARY_PATH
}

teardown_file() {
Expand Down
6 changes: 5 additions & 1 deletion integration_tests/libthapi-ctl/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
CFLAGS = -Wall -Wextra $(WERROR) -DCL_TARGET_OPENCL_VERSION=220 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -I$(THAPI_HOME)/include
LDFLAGS = -lOpenCL -Wl,-rpath,$(THAPI_HOME)/lib -L$(THAPI_HOME)/lib -lthapi-ctl -llttng-ctl
LDFLAGS = -lOpenCL -L$(THAPI_HOME)/lib -lthapi-ctl -llttng-ctl


.PHONY: all
all: hello-cl-startstop

hello-cl-startstop: hello-cl-startstop.c cl_utils.c
gcc $(CFLAGS) $^ $(LDFLAGS) -o $@

.PHONY: clean
clean:
rm -f hello-cl-startstop

0 comments on commit 1b2b728

Please sign in to comment.