1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/lang/tcc/files/patch-configure
Bartek Rutkowski d69c2fb4f3 lang/tcc: fix stdio.h bug
PR:		202093
Submitted by:	Carlos J Puga Medina <cpm@fbsd.es> (maintainer)
MFH:		2015Q3
2015-08-05 13:18:22 +00:00

31 lines
748 B
Plaintext

--- configure.orig 2013-02-15 14:24:00 UTC
+++ configure
@@ -45,6 +45,7 @@ tcc_crtprefix=""
tcc_elfinterp=""
tcc_lddir=
confvars=
+define_va_list=""
cpu=`uname -m`
@@ -332,6 +333,9 @@ if test -z "$cross_prefix" ; then
fi
fi
+ if ! $cc -o $CONFTEST -c $source_path/va_list.c 2>/dev/null ; then
+ define_va_list="yes"
+ fi
else
# if cross compiling, cannot launch a program, so make a static guess
case $cpu in
@@ -483,6 +487,9 @@ if test "$have_selinux" = "yes" ; then
echo "#define HAVE_SELINUX" >> $TMPH
echo "HAVE_SELINUX=yes" >> config.mak
fi
+if test "$define_va_list" = "yes" ; then
+ echo "#define DEFINE_VA_LIST" >> $TMPH
+fi
version=`head $source_path/VERSION`
echo "VERSION=$version" >>config.mak