Files
pkgsrc-ng/security/lasso/patches/patch-configure
2016-01-21 23:40:00 +01:00

31 lines
855 B
Plaintext

$NetBSD: patch-configure,v 1.2 2015/04/01 14:05:02 manu Exp $
Make sure _POSIX_C_SOURCE=199506 so that strtok() is defined by <string.h>
Otherwise, compiler assumes it returns an int, which badly breaks on LP64
Also use = instead of == for test(1) portability sake.
--- configure.orig 2014-08-28 16:05:55.000000000 +0200
+++ configure 2015-03-25 11:43:14.000000000 +0100
@@ -13771,9 +13771,9 @@
enable_java=no
JAVA_VERSION=""
fi
-if test "$DARWIN" == 1; then
+if test "$DARWIN" = 1; then
JNI_EXTRA_LDFLAGS="-shrext .jnilib"
fi
if test "x$enable_java" = "xyes"; then
@@ -15279,8 +15279,9 @@
fi
LASSO_PUB_CFLAGS="$LASSO_DEFINES"
+LASSO_CFLAGS="$LASSO_CFLAGS -D_POSIX_C_SOURCE=199506"
LASSO_CORE_CFLAGS="$LASSO_CFLAGS $LASSO_DEFINES $Z_CFLAGS -DLASSO_INTERNALS"
if test $MINGW -eq 1; then
LASSO_CORE_LIBS="-llasso-0"
else