Refinements for SYSTEM=msys builds (MSYS2)

This commit is contained in:
Nigel Stewart 2019-09-27 23:55:50 +10:00
parent 3f91cd177a
commit 0831041e9f
3 changed files with 5 additions and 5 deletions

View File

@ -7,9 +7,9 @@ CFLAGS.EXTRA += -D_WIN32
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
LDFLAGS.EXTRA =
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
#LDFLAGS.EXTRA += -nostdlib
LIBDIR = $(GLEW_DEST)/bin
WARN = -Wall -W
WARN += -Wall -W
WARN += -Wno-cast-function-type
POPT = -O2
BIN.SUFFIX = .exe
LIB.SONAME = lib$(NAME).dll

View File

@ -1,5 +1,5 @@
include config/Makefile.msys
POPT := -mtune=generic -O2
CFLAGS.EXTRA += -m64 -Wno-cast-function-type
CFLAGS.EXTRA += -m64
LDFLAGS.EXTRA += -m64

View File

@ -4,7 +4,7 @@
** Copyright (C) Nate Robins, 1997
** Michael Wimmer, 1999
** Milan Ikits, 2002-2008
** Nigel Stewart, 2008-2013
** Nigel Stewart, 2008-2019
**
** visualinfo is a small utility that displays all available visuals,
** aka. pixelformats, in an OpenGL system along with renderer version
@ -592,7 +592,7 @@ VisualInfoGDI (GLContext* ctx)
|| (drawableonly && !(pfd.dwFlags & PFD_DRAW_TO_WINDOW))) continue;
fprintf(file, "Visual ID: %2d depth=%d class=%s\n", i, pfd.cDepthBits,
pfd.cColorBits <= 8 ? "PseudoColor" : "TrueColor");
fprintf(file, " bufferSize=%d level=%d renderType=%s doubleBuffer=%ld stereo=%ld\n", pfd.cColorBits, pfd.bReserved, pfd.iPixelType == PFD_TYPE_RGBA ? "rgba" : "ci", pfd.dwFlags & PFD_DOUBLEBUFFER, pfd.dwFlags & PFD_STEREO);
fprintf(file, " bufferSize=%d level=%d renderType=%s doubleBuffer=%ld stereo=%ld\n", pfd.cColorBits, pfd.bReserved, pfd.iPixelType == PFD_TYPE_RGBA ? "rgba" : "ci", (long) (pfd.dwFlags & PFD_DOUBLEBUFFER), (long) (pfd.dwFlags & PFD_STEREO));
fprintf(file, " generic=%d generic accelerated=%d\n", (pfd.dwFlags & PFD_GENERIC_FORMAT) == PFD_GENERIC_FORMAT, (pfd.dwFlags & PFD_GENERIC_ACCELERATED) == PFD_GENERIC_ACCELERATED);
fprintf(file, " rgba: redSize=%d greenSize=%d blueSize=%d alphaSize=%d\n", pfd.cRedBits, pfd.cGreenBits, pfd.cBlueBits, pfd.cAlphaBits);
fprintf(file, " auxBuffers=%d depthSize=%d stencilSize=%d\n", pfd.cAuxBuffers, pfd.cDepthBits, pfd.cStencilBits);