Fix MinGW target.

This commit is contained in:
Anthony J. Bentley
2014-09-24 03:17:33 -06:00
parent e3df758897
commit f3394f46b4
2 changed files with 5 additions and 2 deletions

View File

@@ -93,7 +93,8 @@ src/asm/asmy.y: ${yacc_pre}
# install instructions instead. # install instructions instead.
mingw: mingw:
$Qenv PATH=/usr/local/mingw32/bin:/bin:/usr/bin:/usr/local/bin \ $Qenv PATH=/usr/local/mingw32/bin:/bin:/usr/bin:/usr/local/bin \
make CC=gcc CFLAGS="-I/usr/local/mingw32/include ${CFLAGS}" make CC=gcc CFLAGS="-I/usr/local/mingw32/include \
-D__progname=\\\"\\\" ${CFLAGS}"
$Qmv rgbasm rgbasm.exe $Qmv rgbasm rgbasm.exe
$Qmv rgblink rgblink.exe $Qmv rgblink rgblink.exe
$Qmv rgbfix rgbfix.exe $Qmv rgbfix rgbfix.exe

4
src/extern/err.c vendored
View File

@@ -21,12 +21,14 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <err.h>
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "extern/err.h"
#ifndef __MINGW32__
extern char *__progname; extern char *__progname;
#endif
void rgbds_vwarn(const char *fmt, va_list ap) void rgbds_vwarn(const char *fmt, va_list ap)
{ {