summaryrefslogtreecommitdiff
path: root/dev-libs/dietlibc/files/dietlibc-0.35-cc.patch
blob: 433610ae6baccecaa1f66ba5c741e6409f7a1513 (plain)
1
2
3
4
5
6
7
8
9
10
11
https://bugs.gentoo.org/722970

--- a/threadsafe.sh
+++ b/threadsafe.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-(gcc -E - << EOF | grep WANT_THREAD_SAFE > /dev/null) || echo libpthread/pthread_*.c
+(${CC} -E - << EOF | grep WANT_THREAD_SAFE > /dev/null) || echo libpthread/pthread_*.c
 #include "dietfeatures.h"
 WANT_THREAD_SAFE
 EOF