pkgsrc/lang/gcc5/patches/patch-libgcc_crtstuff.c
ryoon 520d354235 Import gcc5-5.1.0 as lang/gcc5.
The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, Java, and Go, as well as libraries for these languages (libstdc++,
libgcj,...). This package provides the snapshot release of version 5.

On NetBSD a working cabsl function must be present in libm to build gfortran.
This has been added to -current on 2014/10/10 and to NetBSD7 on 2014/10/13.
2015-07-16 12:03:36 +00:00

14 lines
463 B
C

$NetBSD: patch-libgcc_crtstuff.c,v 1.1 2015/07/16 12:03:36 ryoon Exp $
--- libgcc/crtstuff.c.orig 2014-09-22 00:49:01.000000000 +0000
+++ libgcc/crtstuff.c
@@ -81,7 +81,8 @@ call_ ## FUNC (void) \
#endif
#if defined(TARGET_DL_ITERATE_PHDR) && \
- (defined(__DragonFly__) || defined(__FreeBSD__))
+ (defined(__DragonFly__) || defined(__FreeBSD__) || \
+ defined(__NetBSD__) || defined(__OpenBSD__))
#define BSD_DL_ITERATE_PHDR_AVAILABLE
#endif