mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gremlin: Adjust tests for foreign distros.
Fixes <https://bugs.gnu.org/35775>. * tests/gremlin.scm ("elf-dynamic-info-needed, executable"): Expect only libguile and libc among NEEDED. ("strip-runpath"): Pass '--enable-new-dtags' to get RUNPATH, not RPATH.
This commit is contained in:
parent
1b0d2b2afc
commit
6b97415996
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ (define c-compiler
|
||||||
(or (not dyninfo) ;static executable
|
(or (not dyninfo) ;static executable
|
||||||
(lset<= string=?
|
(lset<= string=?
|
||||||
(list (string-append "libguile-" (effective-version))
|
(list (string-append "libguile-" (effective-version))
|
||||||
"libgc" "libunistring" "libffi")
|
"libc")
|
||||||
(map (lambda (lib)
|
(map (lambda (lib)
|
||||||
(string-take lib (string-contains lib ".so")))
|
(string-take lib (string-contains lib ".so")))
|
||||||
(elf-dynamic-info-needed dyninfo))))))
|
(elf-dynamic-info-needed dyninfo))))))
|
||||||
|
@ -79,7 +79,7 @@ (define c-compiler
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(display "int main () { puts(\"hello\"); }" port)))
|
(display "int main () { puts(\"hello\"); }" port)))
|
||||||
(invoke c-compiler "t.c"
|
(invoke c-compiler "t.c"
|
||||||
"-Wl,-rpath=/foo" "-Wl,-rpath=/bar")
|
"-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar")
|
||||||
(let* ((dyninfo (elf-dynamic-info
|
(let* ((dyninfo (elf-dynamic-info
|
||||||
(parse-elf (call-with-input-file "a.out"
|
(parse-elf (call-with-input-file "a.out"
|
||||||
get-bytevector-all))))
|
get-bytevector-all))))
|
||||||
|
|
Loading…
Reference in a new issue