mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 15:30:14 +01:00
Mesa currently disables -fPIC for DRI on x86, but most Linux distros are re-enabling -fPIC for all DRI arches. Let's just do that here since that's normally what's wanted for shared libraries. Some justification: http://bugs.gentoo.org/show_bug.cgi?id=110840#c9 On the other hand, position-independent code is only necessary when building shared libraries, so disable it for the static cases.
25 lines
588 B
Text
25 lines
588 B
Text
# Configuration for generic Linux, making static libs
|
|
|
|
include $(TOP)/configs/linux
|
|
|
|
CONFIG_NAME = linux-static
|
|
|
|
MKLIB_OPTIONS = -static
|
|
PIC_FLAGS =
|
|
|
|
# Library names (actual file names)
|
|
GL_LIB_NAME = libGL.a
|
|
GLU_LIB_NAME = libGLU.a
|
|
GLUT_LIB_NAME = libglut.a
|
|
GLW_LIB_NAME = libGLw.a
|
|
OSMESA_LIB_NAME = libOSMesa.a
|
|
|
|
# Library/program dependencies (static libs don't have dependencies)
|
|
GL_LIB_DEPS =
|
|
OSMESA_LIB_DEPS =
|
|
GLU_LIB_DEPS =
|
|
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
|