Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 454308f

Browse files
author
Matthias Koeppe
committed
build/pkgs/{numpy,scipy} [Cygwin]: Define _GNU_SOURCE
1 parent 1e728ac commit 454308f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build/pkgs/numpy/spkg-install.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ else
1111
export LDFLAGS="${LDFLAGS} -shared"
1212
fi
1313

14+
if [ "$UNAME" = "CYGWIN" ]; then
15+
# Trac #30643
16+
export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
17+
fi
18+
1419
sage-python23 ../lapack_conf.py
1520

1621
# Make sure that the fortran objects are compiled with -fPIC

build/pkgs/scipy/spkg-install.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ fi
1818
# Make sure that the fortran objects are compiled with -fPIC
1919
export FFLAGS="$FFLAGS -fPIC"
2020
export FCFLAGS="$FCFLAGS -fPIC"
21+
22+
if [ "$UNAME" = "CYGWIN" ]; then
23+
# Trac #30643
24+
export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
25+
fi
26+
2127
if [ "$UNAME" = "CYGWIN" -a "$SAGE_DEBUG" = "yes" ]; then
2228
# Needed for just one or two modules when compiling in debug mode
2329
# Otherwise the debug symbols create too many sections in the binary

0 commit comments

Comments
 (0)