Allow SDL to utilize symbol visibility with GCC 3 so it can
build on shared archs using GCC 3. ok sthen@
This commit is contained in:
parent
7fe3666486
commit
858b804f37
@ -1,7 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.88 2013/01/12 12:34:21 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.89 2013/01/16 01:49:02 brad Exp $
|
||||
|
||||
# requires ELF visibility support when on a shared arch
|
||||
ONLY_FOR_ARCHS= ${GCC4_ARCHS} ${NO_SHARED_ARCHS}
|
||||
ONLY_FOR_ARCHS= ${GCC3_ARCHS} ${GCC4_ARCHS} ${NO_SHARED_ARCHS}
|
||||
|
||||
COMMENT= cross-platform multimedia library
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-configure,v 1.24 2012/03/22 13:00:42 dcoppa Exp $
|
||||
--- configure.orig Thu Jan 19 07:30:12 2012
|
||||
+++ configure Thu Mar 22 13:52:46 2012
|
||||
$OpenBSD: patch-configure,v 1.25 2013/01/16 01:49:02 brad Exp $
|
||||
--- configure.orig Thu Jan 19 01:30:12 2012
|
||||
+++ configure Tue Jan 15 19:04:56 2013
|
||||
@@ -21000,6 +21000,20 @@ _ACEOF
|
||||
fi
|
||||
}
|
||||
@ -22,6 +22,17 @@ $OpenBSD: patch-configure,v 1.24 2012/03/22 13:00:42 dcoppa Exp $
|
||||
CheckPulseAudio()
|
||||
{
|
||||
# Check whether --enable-pulseaudio was given.
|
||||
@@ -22508,8 +22522,8 @@ cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
- #if !defined(__GNUC__) || __GNUC__ < 4
|
||||
- #error SDL only uses visibility attributes in GCC 4 or newer
|
||||
+ #if !defined(__GNUC__) || __GNUC__ < 3
|
||||
+ #error SDL only uses visibility attributes in GCC 3 or newer
|
||||
#endif
|
||||
|
||||
int
|
||||
@@ -24073,6 +24087,12 @@ fi
|
||||
x11_lib='libX11.so'
|
||||
x11ext_lib='libXext.so'
|
||||
@ -35,6 +46,17 @@ $OpenBSD: patch-configure,v 1.24 2012/03/22 13:00:42 dcoppa Exp $
|
||||
*)
|
||||
x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
|
||||
x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
|
||||
@@ -24106,8 +24126,8 @@ echo "$as_me: WARNING: You must have SDL_LoadObject()
|
||||
fi
|
||||
if test x$x11_symbols_private != xyes && \
|
||||
test x$enable_x11_shared = xyes; then
|
||||
- { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
|
||||
-echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
|
||||
+ { echo "$as_me:$LINENO: WARNING: You must have gcc3 (-fvisibility=hidden) for dynamic X11 loading" >&5
|
||||
+echo "$as_me: WARNING: You must have gcc3 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
|
||||
enable_x11_shared=no
|
||||
fi
|
||||
|
||||
@@ -29551,6 +29571,7 @@ _ACEOF
|
||||
CheckALSA
|
||||
CheckARTSC
|
||||
|
12
devel/sdl/patches/patch-include_begin_code_h
Normal file
12
devel/sdl/patches/patch-include_begin_code_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-include_begin_code_h,v 1.1 2013/01/16 01:49:02 brad Exp $
|
||||
--- include/begin_code.h.orig Tue Jan 15 19:09:01 2013
|
||||
+++ include/begin_code.h Tue Jan 15 19:09:45 2013
|
||||
@@ -77,7 +77,7 @@
|
||||
# define DECLSPEC
|
||||
# endif
|
||||
# else
|
||||
-# if defined(__GNUC__) && __GNUC__ >= 4
|
||||
+# if defined(__GNUC__) && __GNUC__ >= 3
|
||||
# define DECLSPEC __attribute__ ((visibility("default")))
|
||||
# else
|
||||
# define DECLSPEC
|
Loading…
Reference in New Issue
Block a user