Ruby: Fix recipe on x86.

- Add cflags define for _BSD_SOURCE, as the build would otherwise fail
  in the socket module due to detecting the presence of the ifaddrs
  header, but lacking the actual functions.
This commit is contained in:
Rene Gollent
2015-09-12 23:26:44 -04:00
parent 1f500675cb
commit cee7aff06b

View File

@@ -19,7 +19,7 @@ PATCHES="ruby-$portVersion.patchset"
REVISION="1"
ARCHITECTURES="!x86_gcc2 ?x86 !x86_64"
ARCHITECTURES="!x86_gcc2 x86 !x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
@@ -78,6 +78,7 @@ BUILD()
{
libtoolize --force --copy --install
autoconf
export CFLAGS=-D_BSD_SOURCE
runConfigure --omit-dirs binDir ./configure --enable-shared \
--disable-silent-rules \
--bindir=$prefix/bin