1 From 820df42a87322eef69a8d02451caa705d53b7dda Mon Sep 17 00:00:00 2001
2 From: Michael Stahl <mstahl@redhat.com>
3 Date: Thu, 30 Jan 2014 12:12:00 +0100
4 Subject: [PATCH] stop linking to unneeded Xmu, Xi, Xext libraries
6 Apparently Xmu and Xi were needed when glewinfo was using glut, but that
7 dependency was removed 11 years ago in
8 031afdf03be1d123b7a442f64cfa28c6066c1490.
10 auto/doc/build.html | 2 +-
11 config/Makefile.cygwin | 2 +-
12 config/Makefile.darwin | 2 +-
13 config/Makefile.darwin-ppc | 2 +-
14 config/Makefile.darwin-x86_64 | 2 +-
15 config/Makefile.freebsd | 2 +-
16 config/Makefile.gnu | 2 +-
17 config/Makefile.kfreebsd | 2 +-
18 config/Makefile.linux | 2 +-
19 config/Makefile.netbsd | 2 +-
20 config/Makefile.openbsd | 2 +-
21 config/Makefile.solaris | 2 +-
22 config/Makefile.solaris-gcc | 2 +-
24 14 files changed, 14 insertions(+), 14 deletions(-)
26 diff --git a/config/Makefile.cygwin b/config/Makefile.cygwin
27 index b044273..8600fd0 100644
28 --- a/config/Makefile.cygwin
29 +++ b/config/Makefile.cygwin
30 @@ -6,7 +6,7 @@ LD := cc
33 LIBDIR = $(GLEW_DEST)/lib
34 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
35 +LDFLAGS.GL = -lGL -lX11
36 LDFLAGS.STATIC = -Wl,-Bstatic
37 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
39 diff --git a/config/Makefile.darwin b/config/Makefile.darwin
40 index 0c05ed1..bf34a0e 100644
41 --- a/config/Makefile.darwin
42 +++ b/config/Makefile.darwin
43 @@ -6,7 +6,7 @@ CFLAGS.EXTRA = -dynamic -fno-common
45 ifneq (undefined, $(origin GLEW_APPLE_GLX))
46 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
47 -LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
48 +LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
50 LDFLAGS.GL = -framework AGL -framework OpenGL
52 diff --git a/config/Makefile.darwin-ppc b/config/Makefile.darwin-ppc
53 index 2aaf66a..46c8b73 100644
54 --- a/config/Makefile.darwin-ppc
55 +++ b/config/Makefile.darwin-ppc
56 @@ -6,7 +6,7 @@ CFLAGS.EXTRA = -arch ppc -dynamic -fno-common
57 LDFLAGS.EXTRA = -arch ppc
58 ifneq (undefined, $(origin GLEW_APPLE_GLX))
59 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
60 -LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
61 +LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
63 LDFLAGS.GL = -framework AGL -framework OpenGL
65 diff --git a/config/Makefile.darwin-x86_64 b/config/Makefile.darwin-x86_64
66 index 83e5c47..e6eb050 100644
67 --- a/config/Makefile.darwin-x86_64
68 +++ b/config/Makefile.darwin-x86_64
69 @@ -6,7 +6,7 @@ CFLAGS.EXTRA = -arch x86_64 -dynamic -fno-common
70 LDFLAGS.EXTRA = -arch x86_64
71 ifneq (undefined, $(origin GLEW_APPLE_GLX))
72 CFLAGS.EXTRA += -I/usr/X11R6/include -D'GLEW_APPLE_GLX'
73 -LDFLAGS.GL = -L/usr/X11R6/lib -lXmu -lXi -lGL -lXext -lX11
74 +LDFLAGS.GL = -L/usr/X11R6/lib -lGL -lX11
76 LDFLAGS.GL = -framework AGL -framework OpenGL
78 diff --git a/config/Makefile.freebsd b/config/Makefile.freebsd
79 index ab9d9d9..bb66fcc 100644
80 --- a/config/Makefile.freebsd
81 +++ b/config/Makefile.freebsd
82 @@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
85 LDFLAGS.EXTRA = -L/usr/X11R6/lib
86 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
87 +LDFLAGS.GL = -lGL -lX11
88 LDFLAGS.STATIC = -Wl,-Bstatic
89 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
90 CFLAGS.EXTRA += -I/usr/X11R6/include
91 diff --git a/config/Makefile.gnu b/config/Makefile.gnu
92 index 2398ab0..b7c58be 100644
93 --- a/config/Makefile.gnu
94 +++ b/config/Makefile.gnu
95 @@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
98 LDFLAGS.EXTRA = -L/usr/X11R6/lib
99 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
100 +LDFLAGS.GL = -lGL -lX11
101 LDFLAGS.STATIC = -Wl,-Bstatic
102 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
104 diff --git a/config/Makefile.kfreebsd b/config/Makefile.kfreebsd
105 index 9501091..faf1046 100644
106 --- a/config/Makefile.kfreebsd
107 +++ b/config/Makefile.kfreebsd
108 @@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
111 LDFLAGS.EXTRA = -L/usr/X11R6/lib
112 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
113 +LDFLAGS.GL = -lGL -lX11
114 LDFLAGS.STATIC = -Wl,-Bstatic
115 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
117 diff --git a/config/Makefile.linux b/config/Makefile.linux
118 index 234adc6..b460b4b 100644
119 --- a/config/Makefile.linux
120 +++ b/config/Makefile.linux
121 @@ -16,7 +16,7 @@ else
122 LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
123 LIBDIR = $(GLEW_DEST)/lib
125 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
126 +LDFLAGS.GL = -lGL -lX11
127 LDFLAGS.STATIC = -Wl,-Bstatic
128 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
130 diff --git a/config/Makefile.netbsd b/config/Makefile.netbsd
131 index 5f69cd6..6da47b1 100644
132 --- a/config/Makefile.netbsd
133 +++ b/config/Makefile.netbsd
134 @@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
137 LDFLAGS.EXTRA = -L/usr/X11R7/lib -R /usr/X11R7/lib
138 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
139 +LDFLAGS.GL = -lGL -lX11
140 LDFLAGS.STATIC = -Wl,-Bstatic
141 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
142 CFLAGS.EXTRA += -I/usr/X11R7/include -fPIC
143 diff --git a/config/Makefile.openbsd b/config/Makefile.openbsd
144 index 365ea9e..ade993e 100644
145 --- a/config/Makefile.openbsd
146 +++ b/config/Makefile.openbsd
147 @@ -2,7 +2,7 @@ NAME = $(GLEW_NAME)
150 LDFLAGS.EXTRA = -L/usr/X11R6/lib
151 -LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 -lm
152 +LDFLAGS.GL = -lGLU -lGL -lX11 -lm
153 LDFLAGS.STATIC = -Wl,-Bstatic
154 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
155 CFLAGS.EXTRA += -I/usr/X11R6/include
156 diff --git a/config/Makefile.solaris b/config/Makefile.solaris
157 index befba5a..fe78ca1 100644
158 --- a/config/Makefile.solaris
159 +++ b/config/Makefile.solaris
160 @@ -4,7 +4,7 @@ LD = ld
161 CFLAGS.EXTRA = -I/usr/openwin/include
163 LDFLAGS.EXTRA = -L/usr/openwin/lib
164 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
165 +LDFLAGS.GL = -lGL -lX11
169 diff --git a/config/Makefile.solaris-gcc b/config/Makefile.solaris-gcc
170 index c0373f4..e00a95b 100644
171 --- a/config/Makefile.solaris-gcc
172 +++ b/config/Makefile.solaris-gcc
173 @@ -4,7 +4,7 @@ LD = ld
174 CFLAGS.EXTRA = -I/usr/openwin/include
176 LDFLAGS.EXTRA = -L/usr/openwin/lib
177 -LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
178 +LDFLAGS.GL = -lGL -lX11