Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 598741 Details for
Bug 813842
Review Request: glfw , A cross-platform multimedia library
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
updates the "gilfw.patch" file from the original 2.7.5 version
glfw-2.7.6-soname-cflags.patch (text/plain), 6.66 KB, created by
Paul Wouters
on 2012-07-17 20:28:31 UTC
(
hide
)
Description:
updates the "gilfw.patch" file from the original 2.7.5 version
Filename:
MIME Type:
Creator:
Paul Wouters
Created:
2012-07-17 20:28:31 UTC
Size:
6.66 KB
patch
obsolete
>diff -Naur glfw-2.7.6-orig/compile.sh glfw-2.7.6/compile.sh >--- glfw-2.7.6-orig/compile.sh 2012-07-17 16:15:50.075592153 -0400 >+++ glfw-2.7.6/compile.sh 2012-07-17 16:17:22.002655187 -0400 >@@ -13,6 +13,12 @@ > # future, but for now it does a pretty good job. > ########################################################################## > >+ABI_MAJOR=2 >+ABI_MINOR=7 >+ABI_BUMP=6 >+SONAME=libglfw.so.$ABI_MAJOR >+ >+ > ########################################################################## > # Check arguments > ########################################################################## >@@ -87,8 +93,8 @@ > > case "x`uname 2> /dev/null`" in > xLinux) >- GLFW_LIB_CFLAGS="$GLFW_LIB_CFLAGS -D_GLFW_USE_LINUX_JOYSTICKS" >- SOFLAGS="-shared -Wl,-soname,libglfw.so" >+ GLFW_LIB_CFLAGS="$GLFW_LIB_CFLAGS -D_GLFW_USE_LINUX_JOYSTICKS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic " >+ SOFLAGS="-shared -Wl,-soname,libglfw.so.$ABI_MAJOR" > echo "Linux" 1>&6 > ;; > xDarwin) >@@ -655,13 +661,17 @@ > # Automatically generated Makefile for GLFW > ########################################################################## > CC = $CC >-CFLAGS = $GLFW_LIB_CFLAGS $GLFW_CFLAGS >+CFLAGS += $GLFW_LIB_CFLAGS $GLFW_CFLAGS > SOFLAGS = $SOFLAGS > LFLAGS = $GLFW_LIB_LFLAGS $GLFW_LFLAGS > > EOF > cat './lib/x11/Makefile.x11.in' >>$MKNAME > >+sed -i \ >+ -e "s|@ABI_MAJOR@|$ABI_MAJOR|g"\ >+ -e "s|@ABI_MINOR@|$ABI_MINOR|g"\ >+ -e "s|@ABI_BUMP@|$ABI_BUMP|g" $MKNAME > # --------------------------------------------------------------------- > # Create Makefile for examples > # --------------------------------------------------------------------- >@@ -677,16 +687,17 @@ > # Makefile for GLFW example programs on X11 (generated by compile.sh) > ########################################################################## > CC = $CC >-CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS >+CFLAGS += $GLFW_BIN_CFLAGS $GLFW_CFLAGS > > LIB = ../lib/x11/libglfw.a >-SOLIB = ../lib/x11/libglfw.so >+SOLIB = ../lib/x11/\$(SONAME) > LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS > SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS > > EOF > cat './examples/Makefile.x11.in' >>$MKNAME > >+ > # --------------------------------------------------------------------- > # Create Makefile for test programs > # --------------------------------------------------------------------- >@@ -705,7 +716,7 @@ > CFLAGS = $GLFW_BIN_CFLAGS $GLFW_CFLAGS > > LIB = ../lib/x11/libglfw.a >-SOLIB = ../lib/x11/libglfw.so >+SOLIB = ../lib/x11/$SONAME > LFLAGS = \$(LIB) $GLFW_LIB_LFLAGS $GLFW_BIN_LFLAGS $GLFW_LFLAGS > SO_LFLAGS = \$(SOLIB) $GLFW_BIN_LFLAGS $GLFW_LFLAGS > >@@ -734,7 +745,7 @@ > prefix=@PREFIX@ > exec_prefix=\${prefix} > includedir=\${prefix}/include >-libdir=\${exec_prefix}/lib >+libdir=\${exec_prefix}/\$(LIBDIR) > > Name: GLFW > Description: A portable framework for OpenGL development >diff -Naur glfw-2.7.6-orig/lib/x11/Makefile.x11.in glfw-2.7.6/lib/x11/Makefile.x11.in >--- glfw-2.7.6-orig/lib/x11/Makefile.x11.in 2012-07-17 16:15:50.190593482 -0400 >+++ glfw-2.7.6/lib/x11/Makefile.x11.in 2012-07-17 16:16:15.575887033 -0400 >@@ -3,12 +3,20 @@ > # Installation prefix (default to /usr/local) > ########################################################################## > PREFIX ?= /usr/local >+LIBDIR ?= lib > >+########################################################################## >+# GLFW shared library >+########################################################################## >+ABI_MAJOR = @ABI_MAJOR@ >+ABI_MINOR = @ABI_MINOR@ >+ABI_BUMP = @ABI_BUMP@ >+SONAME = libglfw.so.$(ABI_MAJOR) > > ########################################################################## > # Default: Build GLFW static library > ########################################################################## >-all: libglfw.a libglfw.so >+all: libglfw.a $(SONAME) > > > ########################################################################## >@@ -19,27 +27,29 @@ > SED = sed > INSTALL = install > ARFLAGS = -rcs >-HEADERS = ../../include/GL/glfw.h ../internal.h platform.h >+HEADERS = ../../include/GL/glfw.h ../internal.h platform.h > > > ########################################################################## > # Install GLFW static library > ########################################################################## > install: libglfw.a libglfw.pc >- $(INSTALL) -d $(PREFIX)/lib >- $(INSTALL) -c -m 644 libglfw.a $(PREFIX)/lib/libglfw.a >- $(INSTALL) -d $(PREFIX)/include/GL >- $(INSTALL) -c -m 644 ../../include/GL/glfw.h $(PREFIX)/include/GL/glfw.h >- $(INSTALL) -d $(PREFIX)/lib/pkgconfig >- $(INSTALL) -c -m 644 libglfw.pc $(PREFIX)/lib/pkgconfig/libglfw.pc >+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/$(LIBDIR) >+ $(INSTALL) -c -m 644 libglfw.a $(DESTDIR)$(PREFIX)/$(LIBDIR)/libglfw.a >+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/include/GL >+ $(INSTALL) -c -m 644 ../../include/GL/glfw.h $(DESTDIR)$(PREFIX)/include/GL/glfw.h >+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig >+ $(INSTALL) -c -m 644 libglfw.pc $(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/libglfw.pc > > > ########################################################################## > # Install GLFW static and shared libraries > ########################################################################## >-dist-install: libglfw.so install >- $(INSTALL) -c -m 644 libglfw.so $(PREFIX)/lib/libglfw.so >- >+dist-install: $(SONAME) install >+ $(INSTALL) -c -m 755 $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(SONAME) >+ ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(SONAME).$(ABI_MINOR) >+ ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(SONAME).$(ABI_MINOR).$(ABI_BUMP) >+ ln -sf $(SONAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)/libglfw.so > > ########################################################################## > # Object files which are part of the GLFW library >@@ -99,7 +109,7 @@ > # Rule for building libglfw.pc > ########################################################################## > libglfw.pc: libglfw.pc.in >- $(SED) -e 's,\@PREFIX\@,$(PREFIX),' libglfw.pc.in > libglfw.pc >+ $(SED) -e 's,\@PREFIX\@,$(PREFIX),;s,\@LIB\@,$(LIB),' libglfw.pc.in > libglfw.pc > > > ########################################################################## >@@ -112,7 +122,7 @@ > ########################################################################## > # Rule for building shared library > ########################################################################## >-libglfw.so: $(SHARED_OBJS) >+$(SONAME): $(SHARED_OBJS) > $(CC) $(SOFLAGS) -o $@ $(SHARED_OBJS) $(LFLAGS) $(LIBS) > > >@@ -255,5 +265,5 @@ > ########################################################################## > > clean: >- rm -f $(STATIC_OBJS) $(SHARED_OBJS) libglfw.a libglfw.so libglfw.pc >+ rm -f $(STATIC_OBJS) $(SHARED_OBJS) libglfw.a $(SONAME) libglfw.pc >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 813842
:
598740
| 598741