change mingw32 compiler to i686-w64-mingw32-gcc

This commit is contained in:
root 2018-03-08 14:57:12 +09:00
parent 722ef56194
commit 4d538efac9
1 changed files with 4 additions and 4 deletions

8
powerfull.sh Normal file → Executable file
View File

@ -50,7 +50,7 @@ comp="0"
# Warn if the gcc-mingw32 package is not located here /usr/bin/i586-mingw32msvc-gcc
# You may need to install the following on Kali Linux to compile the C to an Exe - "apt-get install gcc-mingw32"
# check mingw if exists
which i586-mingw32msvc-gcc > /dev/null 2>&1
which i686-w64-mingw32-gcc > /dev/null 2>&1
if [ "$?" -eq "0" ]
then
echo []::[mingw32]: installation found!;
@ -171,7 +171,7 @@ fi
echo ""
if [ $comp == "1" ]
then
COMPILER="i586-mingw32msvc-gcc"
COMPILER="i686-w64-mingw32-gcc"
fi
if [ $comp == "2" ]
then
@ -193,7 +193,7 @@ echo -ne $green "Choose (1 or 2) : " ;tput sgr0
read archs
case $archs in
1)
COMPILER="i586-mingw32msvc-gcc"
COMPILER="i686-w64-mingw32-gcc"
echo ""
echo -e $green "32bit Selected"
sleep 1
@ -205,7 +205,7 @@ echo -e $green "64bit Selected"
sleep 1
;;
*)
COMPILER="i586-mingw32msvc-gcc"
COMPILER="x86_64-w64-mingw32-gcc"
echo ""
echo -e $green "Invalid Option , setting 32bit as default"
sleep 1