Commit a9f5ec3e authored by Nigel Stewart's avatar Nigel Stewart
Browse files

Put CFLAGS -fno-builtin and LDFLAGS -nostdlib seperate to CC and LD variables

parent 6c68ad32
......@@ -4,11 +4,13 @@ BINDIR = /usr/bin
LIBDIR = /usr/lib/mingw
INCDIR = /usr/include/mingw/GL
# use gcc for linking, with ld it does not work
CC := gcc -mno-cygwin -fno-builtin -fno-stack-protector
LD := gcc -mno-cygwin -nostdlib
CC := gcc -mno-cygwin
LD := gcc -mno-cygwin
LN :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
LDFLAGS.EXTRA = -L$(LIBDIR)
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
......
......@@ -2,10 +2,11 @@
# http://www.mingw.org/
#
# $ make SYSTEM=fedora-mingw32
#
include config/Makefile.linux-mingw32
CC := i686-pc-mingw32-gcc -fno-builtin -fno-stack-protector
LD := i686-pc-mingw32-ld -nostdlib
CC := i686-pc-mingw32-gcc
LD := i686-pc-mingw32-ld
LDFLAGS.GL += -L/usr/i686-pc-mingw32/sys-root/mingw/lib
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
......@@ -5,11 +5,13 @@
#
NAME := glew32
CC := i686-w64-mingw32-gcc -fno-builtin -fno-stack-protector
LD := i686-w64-mingw32-ld -nostdlib
CC := i686-w64-mingw32-gcc
LD := i686-w64-mingw32-ld
LN :=
STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
......
......@@ -2,15 +2,16 @@
# http://www.mingw.org/
#
# $ make SYSTEM=linux-mingw32
#
NAME := glew32
HOST := i586-mingw32msvc
CC := $(HOST)-gcc -fno-builtin -fno-stack-protector
LD := $(HOST)-ld -nostdlib
CC := $(HOST)-gcc
LD := $(HOST)-ld
LN :=
STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
......
......@@ -2,15 +2,16 @@
# http://www.mingw.org/
#
# $ make SYSTEM=linux-mingw64
#
NAME := glew32
HOST := i686-w64-mingw32
CC := $(HOST)-gcc -fno-builtin -fno-stack-protector
LD := $(HOST)-ld -nostdlib
CC := $(HOST)-gcc
LD := $(HOST)-ld
LN :=
STRIP :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
......
NAME = glew32
# use gcc for linking, with ld it does not work
CC := gcc -fno-builtin -fno-stack-protector
LD := gcc -nostdlib
CC := gcc -fno-builtin
LD := gcc
LN :=
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
LDFLAGS.EXTRA = -L/mingw/lib
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
LDFLAGS.EXTRA += -nostdlib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
......
NAME = glew32
# use gcc for linking, with ld it does not work
CC := gcc -fno-builtin -fno-stack-protector
LD := gcc -nostdlib
CC := gcc
LD := gcc
LN :=
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
POPT = -O2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment