#167 Update openmp-rpm test to pass LDFLAGS
Merged 2 years ago by sergesanspaille. Opened 2 years ago by tstellar.
rpms/ tstellar/clang openmp-test  into  rawhide

file modified
+2 -1
@@ -21,7 +21,8 @@ 

  https://github.com/llvm/llvm-project/commit/9b9d08111b618d74574ba03e5cc3d752ecc56f55

  

  %build

- clang ${CFLAGS} -fopenmp %{SOURCE0} -o main

+ clang ${CFLAGS} -c %{SOURCE0} -o test.o

+ clang ${LDFLAGS} -fopenmp test.o -o main

  

  %check

  ./main

This is needed after -fno-openmp-implicit-rpath was moved from CFLAGS
to LDFLAGS.

Build succeeded.

@jcheca

@tstellar agreed. This is in PR#165 but let's merge this one asap as missing LDFLAGS is making this test fail.

Pull-Request has been merged by sergesanspaille

2 years ago
Metadata