mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 22:55:06 +00:00
GLEW Patch #63 - Use CC/CXX/LD variable from environment, don't hardcode cc
This commit is contained in:
parent
c5a3681eae
commit
b19d0a09ed
@ -4,8 +4,8 @@ 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
|
||||
LD := gcc -mno-cygwin
|
||||
CC ?= gcc -mno-cygwin
|
||||
LD ?= $(CC)
|
||||
LN :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
|
@ -1,8 +1,8 @@
|
||||
NAME = GLEW
|
||||
GLEW_DEST ?= /usr
|
||||
# use gcc for linking, with ld it does not work
|
||||
CC := cc
|
||||
LD := cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
LN :=
|
||||
LDFLAGS.EXTRA =
|
||||
LIBDIR = $(GLEW_DEST)/lib
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
CFLAGS.EXTRA = -dynamic -fno-common
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
LDFLAGS.EXTRA =
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
CFLAGS.EXTRA = -arch ppc -dynamic -fno-common
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
LDFLAGS.EXTRA = -arch ppc
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common
|
||||
#CFLAGS.EXTRA += -no-cpp-precomp
|
||||
LDFLAGS.EXTRA = -arch x86_64
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
ifneq (undefined, $(origin GLEW_MX))
|
||||
CFLAGS.EXTRA = -DGLEW_MX
|
||||
endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
ABI = -64# -n32
|
||||
CC += $(ABI)
|
||||
LD += $(ABI)
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = cc
|
||||
CC ?= cc
|
||||
LD ?= $(CC)
|
||||
M_ARCH ?= $(shell uname -m)
|
||||
ARCH64 = false
|
||||
ifeq (x86_64,${M_ARCH})
|
||||
|
@ -1,7 +1,7 @@
|
||||
NAME = glew32
|
||||
# use gcc for linking, with ld it does not work
|
||||
CC := gcc
|
||||
LD := gcc
|
||||
CC ?= gcc
|
||||
LD ?= $(CC)
|
||||
LN :=
|
||||
CFLAGS.SO = -DGLEW_BUILD
|
||||
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
||||
|
@ -6,9 +6,9 @@ ifeq (Linux,${M_NAME})
|
||||
M_PREFIX = i686
|
||||
endif
|
||||
|
||||
CC = $(M_PREFIX)-nacl-gcc
|
||||
CXX = $(M_PREFIX)-nacl-g++
|
||||
LD = $(M_PREFIX)-nacl-ld
|
||||
CC ?= $(M_PREFIX)-nacl-gcc
|
||||
CXX ?= $(M_PREFIX)-nacl-g++
|
||||
LD ?= $(M_PREFIX)-nacl-ld
|
||||
STRIP ?=
|
||||
EXT.DYNAMIC = so
|
||||
LDFLAGS.EXTRA =
|
||||
|
@ -6,9 +6,9 @@ ifeq (Linux,${M_NAME})
|
||||
M_PREFIX = i686
|
||||
endif
|
||||
|
||||
CC = $(M_PREFIX)-nacl-gcc
|
||||
CXX = $(M_PREFIX)-nacl-g++
|
||||
LD = $(M_PREFIX)-nacl-ld
|
||||
CC ?= $(M_PREFIX)-nacl-gcc
|
||||
CXX ?= $(M_PREFIX)-nacl-g++
|
||||
LD ?= $(M_PREFIX)-nacl-ld
|
||||
STRIP ?=
|
||||
EXT.DYNAMIC = so
|
||||
LDFLAGS.EXTRA =
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R7/lib -R /usr/X11R7/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
LDFLAGS.EXTRA = -L/usr/X11R6/lib
|
||||
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 -lm
|
||||
LDFLAGS.STATIC = -Wl,-Bstatic
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = cc
|
||||
LD = ld
|
||||
CC ?= cc
|
||||
LD ?= ld
|
||||
CFLAGS.EXTRA = -I/usr/openwin/include
|
||||
LDFLAGS.SO = -G
|
||||
LDFLAGS.EXTRA = -L/usr/openwin/lib
|
||||
|
@ -1,6 +1,6 @@
|
||||
NAME = $(GLEW_NAME)
|
||||
CC = gcc
|
||||
LD = ld
|
||||
CC ?= gcc
|
||||
LD ?= ld
|
||||
CFLAGS.EXTRA = -I/usr/openwin/include
|
||||
LDFLAGS.SO = -G
|
||||
LDFLAGS.EXTRA = -L/usr/openwin/lib
|
||||
|
Loading…
Reference in New Issue
Block a user