spack/var/spack/repos/builtin/packages/hip-examples/0002-add-fpic-compile-to-add4.patch
afzpatel db23fd055c
new hip-examples package (#35891)
* initial commit for adding hip-examples package
* adding test to hip-examples
* fixed compile error on add4
* change standalone test to use new syntax
2023-07-10 13:05:46 -07:00

10 lines
214 B
Diff

diff --git a/add4/Makefile b/add4/Makefile
index a0c6826..d7b26b1 100644
--- a/add4/Makefile
+++ b/add4/Makefile
@@ -1,4 +1,4 @@
-CXXFLAGS += -std=c++11 -O3
+CXXFLAGS += -std=c++11 -O3 -fPIC
all: gpu-stream-hip