From: Dan Nicholson Date: Thu, 1 Nov 2007 00:12:07 +0000 (-0700) Subject: configs: Fix linking with static libGL and --as-needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6aaf9bdd418e11d5ccb76a6ab85a8df36b0c8804;p=mesa.git configs: Fix linking with static libGL and --as-needed Linking of the programs breaks when using a static libGL and the GNU ld option --as-needed. This is because libXext is needed for the XShm functions. --- diff --git a/configs/linux-static b/configs/linux-static index 2a77d4c4b7b..1ee16be73f2 100644 --- a/configs/linux-static +++ b/configs/linux-static @@ -22,4 +22,5 @@ GLUT_LIB_DEPS = GLW_LIB_DEPS = # Need to specify all libraries we may need -APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm +APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ + -lstdc++ -lm diff --git a/configs/linux-x86-64-static b/configs/linux-x86-64-static index 06e6fc36503..611abf075d1 100644 --- a/configs/linux-x86-64-static +++ b/configs/linux-x86-64-static @@ -20,4 +20,5 @@ OSMESA_LIB_DEPS = GLU_LIB_DEPS = GLUT_LIB_DEPS = GLW_LIB_DEPS = -APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm +APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ + -lstdc++ -lm diff --git a/configs/linux-x86-static b/configs/linux-x86-static index 2b6478b5868..645196c09fa 100644 --- a/configs/linux-x86-static +++ b/configs/linux-x86-static @@ -20,4 +20,5 @@ OSMESA_LIB_DEPS = GLU_LIB_DEPS = GLUT_LIB_DEPS = GLW_LIB_DEPS = -APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm +APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ + -lstdc++ -lm