瀏覽代碼

darwin: Use -fvisibility=hidden to set default symbol visibility

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
tags/mesa-7.11-rc1
Jeremy Huddleston 14 年之前
父節點
當前提交
1b90d7d36b
共有 3 個文件被更改,包括 9 次插入22 次删除
  1. 2
    2
      configs/darwin
  2. 0
    4
      src/glx/apple/apple_glapi.c
  3. 7
    16
      src/glx/apple/apple_xgl_api.h

+ 2
- 2
configs/darwin 查看文件

@@ -25,9 +25,9 @@ DEFINES = -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \

ARCH_FLAGS += $(RC_CFLAGS)

CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fvisibility=hidden \
-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing \
CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing -fvisibility=hidden \
-I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)

# Library names (actual file names)

+ 0
- 4
src/glx/apple/apple_glapi.c 查看文件

@@ -49,13 +49,9 @@
#define OPENGL_FRAMEWORK_PATH "/System/Library/Frameworks/OpenGL.framework/OpenGL"
#endif

__private_extern__
struct _glapi_table * __ogl_framework_api = NULL;

__private_extern__
struct _glapi_table * __applegl_api = NULL;

__private_extern__
void apple_xgl_init_direct(void) {
static void *handle;
const char *opengl_framework_path;

+ 7
- 16
src/glx/apple/apple_xgl_api.h 查看文件

@@ -29,24 +29,15 @@

#ifndef APPLE_XGL_API_H

__private_extern__ void
__applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
void __applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, void *pixels);
void __applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
void __applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y,
GLsizei width);

__private_extern__ void
__applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
void __applegl_glDrawBuffer(GLenum mode);
void __applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs);

__private_extern__ void
__applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y,
GLsizei width);

__private_extern__ void
__applegl_glDrawBuffer(GLenum mode);

__private_extern__ void
__applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs);

__private_extern__ void
__applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
void __applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);

#endif

Loading…
取消
儲存