View | Details | Raw Unified
Collapse All | Expand All

(-) glfw-2.5-orig/compile.sh (-3 / +3 lines)
 Lines 429-437    Link Here 
# Post fixups
# Post fixups
##########################################################################
##########################################################################
if [ "x$use_gcc" = xyes ]; then
if [ "x$use_gcc" = xyes ]; then
  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O3 -ffast-math -Wall"
  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O3 -ffast-math -Wall -fPIC"
  CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall"
  CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall -fPIC"
  CFLAGS_LINK="$INCS -O3 -ffast-math -Wall"
  CFLAGS_LINK="$INCS -O3 -ffast-math -Wall -fPIC"
else
else
  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O"
  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O"
  CFLAGS="-c -I. -I.. $CFLAGS -O"
  CFLAGS="-c -I. -I.. $CFLAGS -O"
(-) glfw-2.5-orig/lib/x11/Makefile.x11.in (-1 / +11 lines)
 Lines 2-15    Link Here 
##########################################################################
##########################################################################
# Default: Build GLFW static library
# Default: Build GLFW static library
##########################################################################
##########################################################################
default: libglfw.a
default: libglfw.a libglfw.so
##########################################################################
##########################################################################
# Library builder settings
# Library builder settings
##########################################################################
##########################################################################
MKLIB    = ar
MKLIB    = ar
MKLIB_SO = gcc
LIBFLAGS = -rcs
LIBFLAGS = -rcs
LIBFLAGS_SO = -shared -Wall $(OBJS) -lc -Wl,-soname
SONAME = libglfw.so
SONAMEVERSION = libglfw.so.2.5
##########################################################################
##########################################################################
 Lines 44-49    Link Here 
libglfw.a: $(OBJS)
libglfw.a: $(OBJS)
	$(MKLIB) $(LIBFLAGS) $@ $(OBJS)
	$(MKLIB) $(LIBFLAGS) $@ $(OBJS)
libglfw.so: $(OBJS)
	$(MKLIB_SO) $(LIBFLAGS_SO) -Wl,$(SOVERSION) -lGLU \
	-lGL -lX11 -lXxf86vm -lXext -o $(SONAME)
##########################################################################
##########################################################################
# Rules for building library object files
# Rules for building library object files
(-) glfw-2.5-orig/lib/x11/x11_time.c (-1 / +3 lines)
 Lines 71-80    Link Here 
#endif // __i386
#endif // __i386
// Should we use inline x86 assembler?
// Should we use inline x86 assembler?
/* Disable for shared build */
/*
#if defined(__i386) && defined(__GNUC__)
#if defined(__i386) && defined(__GNUC__)
#define _USE_X86_ASM
#define _USE_X86_ASM
#endif
#endif
*/
//************************************************************************
//************************************************************************