summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-08-24 12:18:09 -0700
committerVinson Lee <[email protected]>2010-08-24 12:18:09 -0700
commitad58f0d9e021065d8e6d82e1aa7387dcd206f86e (patch)
tree0cb32dd4184168404503f5c146074a164dc6d10d /src/glx
parentd3772eab2d1f72a1f1199b2860941995b9826c98 (diff)
make: Use C++ compiler to link stdc++ library.
glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glx/Makefile b/src/glx/Makefile
index 9a22d0c547a..ba5708ffed5 100644
--- a/src/glx/Makefile
+++ b/src/glx/Makefile
@@ -71,8 +71,9 @@ default: depend $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
# Make libGL
$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(GLAPI_LIB) Makefile
- $(MKLIB) -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
- -major 1 -minor 2 $(MKLIB_OPTIONS) \
+ $(MKLIB) -o $(GL_LIB) -linker '$(CXX)' -ldflags '$(LDFLAGS)' \
+ -major 1 -minor 2 \
+ -cplusplus $(MKLIB_OPTIONS) \
-install $(TOP)/$(LIB_DIR) -id $(INSTALL_LIB_DIR)/lib$(GL_LIB).1.dylib \
$(GL_LIB_DEPS) $(OBJECTS) $(GLAPI_LIB)