mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
support xcode
This commit is contained in:
parent
89fbd9a44d
commit
3e364483d2
3 changed files with 12 additions and 2 deletions
9
configure
vendored
9
configure
vendored
|
@ -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue