blob: 5a3fad1fbb60102da4fdcb6aca09640123f51f17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-configure,v 1.2 2017/04/29 18:18:52 adam Exp $
Portability fix.
Make it use weak symbols with Clang.
--- configure.orig 2015-11-12 04:08:11.000000000 +0000
+++ configure
@@ -26437,7 +26437,7 @@ if test -z "$BUILD_PAMID_TRUE"; then :
pamid_platform=${device_args}
-if test x"$pamid_platform" == "x"; then
+if test x"$pamid_platform" = "x"; then
case $host in #(
*-bgq-*) :
pamid_platform=BGQ ;; #(
@@ -29322,7 +29322,9 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#ifndef __clang__
extern int PFoo(int);
+#endif
#pragma weak PFoo = Foo
int Foo(int a) { return a; }
|