dev-util/strace: sync static fix w/9999 ebuild and document it #653292
authorMike Frysinger <vapier@chromium.org>
Fri, 18 May 2018 07:51:24 +0000 (03:51 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 May 2018 08:05:56 +0000 (04:05 -0400)
Bug: https://bugs.gentoo.org/653292

dev-util/strace/strace-4.22.ebuild
dev-util/strace/strace-9999.ebuild

index e7b555a3e2b0a166436d14e3bf9388656925a73f..9fd23499e4d2e6f185660bd47be8baa398e6dcf0 100644 (file)
@@ -44,6 +44,7 @@ src_prepare() {
        fi
 
        filter-lfs-flags # configure handles this sanely
+       # Add -pthread since strace wants -lrt for timer_create, and -lrt uses -lpthread.
        use static && append-ldflags -static -pthread
 
        export ac_cv_header_libaio_h=$(usex aio)
index bcf676fc5d5e4403e42635d1baeb164308ec426a..9a46478721fc29df036da7e223474118ee8bb33b 100644 (file)
@@ -44,7 +44,8 @@ src_prepare() {
        fi
 
        filter-lfs-flags # configure handles this sanely
-       use static && append-ldflags -static
+       # Add -pthread since strace wants -lrt for timer_create, and -lrt uses -lpthread.
+       use static && append-ldflags -static -pthread
 
        export ac_cv_header_libaio_h=$(usex aio)
        use elibc_musl && export ac_cv_header_stdc=no