mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 10:18:09 -04:00
17 lines
377 B
Plaintext
17 lines
377 B
Plaintext
$NetBSD: patch-configure,v 1.1 2013/04/20 17:39:01 asau Exp $
|
|
|
|
Make it use weak symbols with Clang.
|
|
|
|
--- configure.orig 2013-03-28 21:03:38.000000000 +0000
|
|
+++ configure
|
|
@@ -27768,7 +27768,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; }
|
|
|