mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Unescape backslash chars in ?e and add osx-qt-mingw32 toolchain support
This commit is contained in:
parent
f430d1d5df
commit
9eb4ef5197
@ -370,8 +370,9 @@ static int cmd_help(void *data, const char *input) {
|
||||
case 'e': // echo
|
||||
{
|
||||
const char *msg = r_str_chop_ro (input+1);
|
||||
char *newmsg = filter_flags (core, msg);
|
||||
// TODO: replace all ${flagname} by its value in hexa
|
||||
char *newmsg = filter_flags (core, msg);
|
||||
r_str_unescape (newmsg);
|
||||
r_cons_printf ("%s\n", newmsg);
|
||||
free (newmsg);
|
||||
}
|
||||
|
21
mk/i586-mingw32-gcc.mk
Normal file
21
mk/i586-mingw32-gcc.mk
Normal file
@ -0,0 +1,21 @@
|
||||
ifeq (${_INCLUDE_MK_GCC_},)
|
||||
_INCLUDE_MK_GCC_=1
|
||||
CC=i586-mingw32-gcc
|
||||
RANLIB=i586-mingw32-ranlib
|
||||
ONELIB=0
|
||||
OSTYPE=windows
|
||||
LINK=
|
||||
CC_AR=i586-mingw32-ar -r ${LIBAR}
|
||||
PICFLAGS=
|
||||
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
|
||||
CC_LIB=${CC} -shared -o
|
||||
CFLAGS_INCLUDE=-I
|
||||
LDFLAGS+=-static-libgcc
|
||||
LDFLAGS_LINK=-l
|
||||
LDFLAGS_LINKPATH=-L
|
||||
CFLAGS_OPT0=-O0
|
||||
CFLAGS_OPT1=-O1
|
||||
CFLAGS_OPT2=-O2
|
||||
CFLAGS_OPT3=-O3
|
||||
CFLAGS_DEBUG=-g
|
||||
endif
|
@ -11,6 +11,11 @@ unset LDFLAGS
|
||||
|
||||
CFGFLAGS="--with-ostype=windows"
|
||||
|
||||
type i586-mingw32-gcc
|
||||
if [ $? = 0 ]; then
|
||||
C=i586-mingw32-gcc
|
||||
H=i586-unknown-windows
|
||||
else
|
||||
type i686-pc-mingw32-gcc >/dev/null 2>&1
|
||||
if [ $? = 0 ]; then
|
||||
C=i686-pc-mingw32-gcc
|
||||
@ -31,6 +36,7 @@ else
|
||||
echo "arch/opensuse/ubuntu/debian mingw32 package required."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
make mrproper
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user