mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +00:00
Put CFLAGS -fno-builtin and LDFLAGS -nostdlib seperate to CC and LD variables
This commit is contained in:
parent
6c68ad327f
commit
a9f5ec3e21
@ -4,11 +4,13 @@ BINDIR = /usr/bin
|
|||||||
LIBDIR = /usr/lib/mingw
|
LIBDIR = /usr/lib/mingw
|
||||||
INCDIR = /usr/include/mingw/GL
|
INCDIR = /usr/include/mingw/GL
|
||||||
# use gcc for linking, with ld it does not work
|
# use gcc for linking, with ld it does not work
|
||||||
CC := gcc -mno-cygwin -fno-builtin -fno-stack-protector
|
CC := gcc -mno-cygwin
|
||||||
LD := gcc -mno-cygwin -nostdlib
|
LD := gcc -mno-cygwin
|
||||||
LN :=
|
LN :=
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA = -L$(LIBDIR)
|
LDFLAGS.EXTRA = -L$(LIBDIR)
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
# http://www.mingw.org/
|
# http://www.mingw.org/
|
||||||
#
|
#
|
||||||
# $ make SYSTEM=fedora-mingw32
|
# $ make SYSTEM=fedora-mingw32
|
||||||
#
|
|
||||||
|
|
||||||
include config/Makefile.linux-mingw32
|
include config/Makefile.linux-mingw32
|
||||||
|
|
||||||
CC := i686-pc-mingw32-gcc -fno-builtin -fno-stack-protector
|
CC := i686-pc-mingw32-gcc
|
||||||
LD := i686-pc-mingw32-ld -nostdlib
|
LD := i686-pc-mingw32-ld
|
||||||
LDFLAGS.GL += -L/usr/i686-pc-mingw32/sys-root/mingw/lib
|
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
|
NAME := glew32
|
||||||
CC := i686-w64-mingw32-gcc -fno-builtin -fno-stack-protector
|
CC := i686-w64-mingw32-gcc
|
||||||
LD := i686-w64-mingw32-ld -nostdlib
|
LD := i686-w64-mingw32-ld
|
||||||
LN :=
|
LN :=
|
||||||
STRIP :=
|
STRIP :=
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
@ -2,15 +2,16 @@
|
|||||||
# http://www.mingw.org/
|
# http://www.mingw.org/
|
||||||
#
|
#
|
||||||
# $ make SYSTEM=linux-mingw32
|
# $ make SYSTEM=linux-mingw32
|
||||||
#
|
|
||||||
|
|
||||||
NAME := glew32
|
NAME := glew32
|
||||||
HOST := i586-mingw32msvc
|
HOST := i586-mingw32msvc
|
||||||
CC := $(HOST)-gcc -fno-builtin -fno-stack-protector
|
CC := $(HOST)-gcc
|
||||||
LD := $(HOST)-ld -nostdlib
|
LD := $(HOST)-ld
|
||||||
LN :=
|
LN :=
|
||||||
STRIP :=
|
STRIP :=
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
@ -2,15 +2,16 @@
|
|||||||
# http://www.mingw.org/
|
# http://www.mingw.org/
|
||||||
#
|
#
|
||||||
# $ make SYSTEM=linux-mingw64
|
# $ make SYSTEM=linux-mingw64
|
||||||
#
|
|
||||||
|
|
||||||
NAME := glew32
|
NAME := glew32
|
||||||
HOST := i686-w64-mingw32
|
HOST := i686-w64-mingw32
|
||||||
CC := $(HOST)-gcc -fno-builtin -fno-stack-protector
|
CC := $(HOST)-gcc
|
||||||
LD := $(HOST)-ld -nostdlib
|
LD := $(HOST)-ld
|
||||||
LN :=
|
LN :=
|
||||||
STRIP :=
|
STRIP :=
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
NAME = glew32
|
NAME = glew32
|
||||||
# use gcc for linking, with ld it does not work
|
# use gcc for linking, with ld it does not work
|
||||||
CC := gcc -fno-builtin -fno-stack-protector
|
CC := gcc -fno-builtin
|
||||||
LD := gcc -nostdlib
|
LD := gcc
|
||||||
LN :=
|
LN :=
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA = -L/mingw/lib
|
LDFLAGS.EXTRA = -L/mingw/lib
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
BIN.SUFFIX = .exe
|
BIN.SUFFIX = .exe
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
NAME = glew32
|
NAME = glew32
|
||||||
# use gcc for linking, with ld it does not work
|
# use gcc for linking, with ld it does not work
|
||||||
CC := gcc -fno-builtin -fno-stack-protector
|
CC := gcc
|
||||||
LD := gcc -nostdlib
|
LD := gcc
|
||||||
LN :=
|
LN :=
|
||||||
CFLAGS.EXTRA += -D_WIN32
|
CFLAGS.EXTRA += -D_WIN32
|
||||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA =
|
||||||
|
CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
|
||||||
|
LDFLAGS.EXTRA += -nostdlib
|
||||||
LIBDIR = $(GLEW_DEST)/bin
|
LIBDIR = $(GLEW_DEST)/bin
|
||||||
WARN = -Wall -W
|
WARN = -Wall -W
|
||||||
POPT = -O2
|
POPT = -O2
|
||||||
|
Loading…
Reference in New Issue
Block a user