Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use which to find ulp files when compiling examples #197

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: zypper -n install autoconf-archive libelf-devel
python3-pexpect python3-psutil libunwind-devel
git gcc gcc-c++ clang libtool make dash valgrind gzip
findutils libjson-c-devel libseccomp-devel
findutils libjson-c-devel libseccomp-devel gawk
- uses: actions/checkout@v2
- name: bootstrap
run: ./bootstrap
Expand Down
6 changes: 5 additions & 1 deletion examples/cplusplus/1-class/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=g++
CXXFLAGS=-O2 -fpatchable-function-entry=16,14 -fPIC -g3
ULP=/usr/bin/ulp
ULP=$(shell which ulp 2>/dev/null)
LDFLAGS=

ifeq ($(ULP),)
$(error Not found ulp, please make install first)
endif

all: test a_livepatch1.so

test: class.o
Expand Down
6 changes: 5 additions & 1 deletion examples/cplusplus/2-private_class/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=g++
CXXFLAGS=-O2 -fpatchable-function-entry=16,14 -fdump-ipa-clones -fPIC -g3
ULP=/usr/bin/ulp
ULP=$(shell which ulp 2>/dev/null)
LDFLAGS=

ifeq ($(ULP),)
$(error Not found ulp, please make install first)
endif

all: test a_livepatch1.so

test: class.o
Expand Down
6 changes: 5 additions & 1 deletion examples/cplusplus/3-indirect_call/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=g++
CXXFLAGS=-O2 -fpatchable-function-entry=16,14 -fdump-ipa-clones -fPIC -g3
ULP=/usr/bin/ulp
ULP=$(shell which ulp 2>/dev/null)
LDFLAGS=

ifeq ($(ULP),)
$(error Not found ulp, please make install first)
endif

all: test a_livepatch1.so

test: class.o
Expand Down
6 changes: 5 additions & 1 deletion examples/cplusplus/4-global_var/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=g++
CXXFLAGS=-O2 -fpatchable-function-entry=16,14 -fdump-ipa-clones -fPIC -g3
ULP=/usr/bin/ulp
ULP=$(shell which ulp 2>/dev/null)
LDFLAGS=

ifeq ($(ULP),)
$(error Not found ulp, please make install first)
endif

all: test a_livepatch1.so

test: test.o
Expand Down
6 changes: 5 additions & 1 deletion examples/cplusplus/5-queue/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
CXX=g++
CXXFLAGS=-fpatchable-function-entry=16,14 -fdump-ipa-clones -fPIC -g3 -Wno-terminate -O2
ULP=/usr/bin/ulp
ULP=$(shell which ulp 2>/dev/null)
LDFLAGS=

ifeq ($(ULP),)
$(error Not found ulp, please make install first)
endif

all: test a_livepatch1.so

test: class.o
Expand Down
Loading