guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 11097ec2e01c7f2b58677936b38fd587b69afc55
Author: Cayetano Santos <[email protected]>
AuthorDate: Sat Jan 24 17:33:03 2026 +0100

    gnu: adaptivecpp: Fix rpath.
    
    * gnu/packages/sycl.scm (adaptivecpp)[arguments]<#:phases>: Remove
    ’create-symlinks.
    <#:configure-flags>: Remove default flag.
    
    Change-Id: Ia8d9a87e46be22303ffca126dec733b7042ead9d
---
 gnu/packages/sycl.scm | 32 ++++----------------------------
 1 file changed, 4 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/sycl.scm b/gnu/packages/sycl.scm
index 03e3abe252..7cd1fd6337 100644
--- a/gnu/packages/sycl.scm
+++ b/gnu/packages/sycl.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2023, 2024 Andy Tai <[email protected]>
+;;; Copyright © 2025, 2026 Cayetano Santos <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -64,36 +65,11 @@
      (list
       #:configure-flags
       #~(list
-         "-DACPP_COMPILER_FEATURE_PROFILE=full"
+         (string-append "-DCMAKE_EXE_LINKER_FLAGS=" "-Wl,-rpath="
+                        #$output "/lib,-rpath="
+                        #$output "/lib/hipSYCL/llvm-to-backend")
          (string-append
           "-DACPP_LLD_PATH=" (search-input-file %build-inputs "/bin/ld.lld")))
-      #:phases
-      #~(modify-phases %standard-phases
-          ;; FIXME: There is probably a much better way.
-          ;; This file: bin/hipSYCL/llvm-to-backend/llvm-to-host-tool
-          ;; requires libacpp-common.so and libllvm-to-{backend,host}.so
-          ;; in RUNPATH
-          (add-before 'validate-runpath 'create-symlinks
-            (lambda _
-              (symlink
-               (string-append #$output "/lib/libacpp-common.so")
-               (string-append
-                #$output
-                "/bin/hipSYCL/llvm-to-backend/libacpp-common.so"))
-              (symlink
-               (string-append
-                #$output
-                "/lib/hipSYCL/llvm-to-backend/libllvm-to-backend.so")
-               (string-append
-                #$output
-                "/bin/hipSYCL/llvm-to-backend/libllvm-to-backend.so"))
-              (symlink
-               (string-append
-                #$output
-                "/lib/hipSYCL/llvm-to-backend/libllvm-to-host.so")
-               (string-append
-                #$output
-                "/bin/hipSYCL/llvm-to-backend/libllvm-to-host.so")))))
       #:tests? #f)) ; no tests
     (home-page "https://adaptivecpp.github.io/";)
     (synopsis

Reply via email to