diff --git a/Makefile b/Makefile index 77d693d..a4fe9ce 100644 --- a/Makefile +++ b/Makefile @@ -121,7 +121,7 @@ tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wgl tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h @mkdir -p $(dir $@) - $(CC) -DGLEW_NO_GLU $(CFLAGS) $(PICFLAG) $(CFLAGS.SO) -o $@ -c $< + $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< glew.pc: glew.pc.in sed \ @@ -157,7 +157,7 @@ tmp/$(SYSTEM)/mx/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h @mkdir -p $(dir $@) - $(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(PICFLAG) $(CFLAGS.SO) -o $@ -c $< + $(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< glewmx.pc: glew.pc.in sed \ diff --git a/config/Makefile.darwin b/config/Makefile.darwin index f6f86ed..0c05ed1 100644 --- a/config/Makefile.darwin +++ b/config/Makefile.darwin @@ -3,7 +3,6 @@ CC = cc LD = cc CFLAGS.EXTRA = -dynamic -fno-common #CFLAGS.EXTRA += -no-cpp-precomp -PICFLAG = -fPIC LDFLAGS.EXTRA = ifneq (undefined, $(origin GLEW_APPLE_GLX)) CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' @@ -15,6 +14,7 @@ LDFLAGS.STATIC = LDFLAGS.DYNAMIC = WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib LIB.DEVLNK = lib$(NAME).dylib diff --git a/config/Makefile.darwin-ppc b/config/Makefile.darwin-ppc index 1162998..2aaf66a 100644 --- a/config/Makefile.darwin-ppc +++ b/config/Makefile.darwin-ppc @@ -3,7 +3,6 @@ CC = cc LD = cc CFLAGS.EXTRA = -arch ppc -dynamic -fno-common #CFLAGS.EXTRA += -no-cpp-precomp -PICFLAG = -fPIC LDFLAGS.EXTRA = -arch ppc ifneq (undefined, $(origin GLEW_APPLE_GLX)) CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' @@ -15,6 +14,7 @@ LDFLAGS.STATIC = LDFLAGS.DYNAMIC = WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib LIB.DEVLNK = lib$(NAME).dylib diff --git a/config/Makefile.darwin-x86_64 b/config/Makefile.darwin-x86_64 index 18ab312..83e5c47 100644 --- a/config/Makefile.darwin-x86_64 +++ b/config/Makefile.darwin-x86_64 @@ -3,7 +3,6 @@ CC = cc LD = cc CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common #CFLAGS.EXTRA += -no-cpp-precomp -PICFLAG = -fPIC LDFLAGS.EXTRA = -arch x86_64 ifneq (undefined, $(origin GLEW_APPLE_GLX)) CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX' @@ -15,6 +14,7 @@ LDFLAGS.STATIC = LDFLAGS.DYNAMIC = WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).$(SO_MAJOR).dylib LIB.DEVLNK = lib$(NAME).dylib diff --git a/config/Makefile.gnu b/config/Makefile.gnu index 09b7230..2398ab0 100644 --- a/config/Makefile.gnu +++ b/config/Makefile.gnu @@ -1,7 +1,6 @@ NAME = $(GLEW_NAME) CC = cc LD = cc -PICFLAG = -fPIC LDFLAGS.EXTRA = -L/usr/X11R6/lib LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 LDFLAGS.STATIC = -Wl,-Bstatic @@ -9,6 +8,7 @@ LDFLAGS.DYNAMIC = -Wl,-Bdynamic NAME = GLEW WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) LIB.DEVLNK = lib$(NAME).so diff --git a/config/Makefile.kfreebsd b/config/Makefile.kfreebsd index b3747e1..9501091 100644 --- a/config/Makefile.kfreebsd +++ b/config/Makefile.kfreebsd @@ -1,7 +1,6 @@ NAME = $(GLEW_NAME) CC = cc LD = cc -PICFLAG = -fPIC LDFLAGS.EXTRA = -L/usr/X11R6/lib LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 LDFLAGS.STATIC = -Wl,-Bstatic @@ -9,6 +8,7 @@ LDFLAGS.DYNAMIC = -Wl,-Bdynamic NAME = GLEW WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) LIB.DEVLNK = lib$(NAME).so diff --git a/config/Makefile.linux b/config/Makefile.linux index b9f5181..4bc9a53 100644 --- a/config/Makefile.linux +++ b/config/Makefile.linux @@ -1,7 +1,6 @@ NAME = $(GLEW_NAME) CC = cc LD = cc -PICFLAG = -fPIC M_ARCH ?= $(shell uname -m) ifeq (x86_64,${M_ARCH}) LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 @@ -16,6 +15,7 @@ LDFLAGS.DYNAMIC = -Wl,-Bdynamic NAME = GLEW WARN = -Wall -W POPT = -O2 +CFLAGS.EXTRA += -fPIC BIN.SUFFIX = LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) LIB.DEVLNK = lib$(NAME).so