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

This commit is contained in:
Nigel Stewart 2016-02-19 22:09:15 +10:00
parent 6c68ad327f
commit a9f5ec3e21
7 changed files with 28 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,10 +1,12 @@
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

View File

@ -1,11 +1,13 @@
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