support xcode

This commit is contained in:
vanhauser-thc 2021-10-20 16:29:52 +02:00
parent 89fbd9a44d
commit 3e364483d2
3 changed files with 12 additions and 2 deletions

9
configure vendored
View file

@ -1362,6 +1362,10 @@ echo '#include <strings.h>' >> $TMPC.c
echo "int main() { char *x = strrchr(\"test\", 'e'); if (x == NULL) return 0; else return 1; }" >> $TMPC.c
$CC -o $TMPC $TMPC.c > /dev/null 2>&1
test -x $TMPC && STRRCHR=""
rm -f $TMPC
$CC -o $TMPC -Wl,--allow-multiple-definition $TMPC.c > /dev/null 2>&1
WALLOW="no"
test -x $TMPC && WALLOW="yes"
rm -f $TMPC $TMPC.c
echo " ... strrchr()$STRRCHR found"
if [ -n "$CRYPTO_PATH" ]; then
@ -1392,6 +1396,11 @@ rm -f $TMPC $TMPC.c $TMPC.c.err
echo " Compiling... $GCCSEC"
echo " Linking... $LDSEC"
echo "Checking for --allow-multiple-definition linker option ... $WALLOW"
if [ "$WALLOW" = "yes" ]; then
GCCSECOPT="$GCCSECOPT -Wl,--allow-multiple-definition"
fi
echo
XDEFINES=""
XLIBS=""