rpms/eclipse-cdt/F-12 eclipse-cdt-ppc64-add_ldflags.patch, NONE, 1.1 eclipse-cdt-ppc64-add_xopen_source-include.patch, NONE, 1.1

Jeff Johnston jjohnstn at fedoraproject.org
Tue Jan 5 21:16:45 UTC 2010


Author: jjohnstn

Update of /cvs/pkgs/rpms/eclipse-cdt/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20797

Added Files:
	eclipse-cdt-ppc64-add_ldflags.patch 
	eclipse-cdt-ppc64-add_xopen_source-include.patch 
Log Message:

Add missing patches.


eclipse-cdt-ppc64-add_ldflags.patch:
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE eclipse-cdt-ppc64-add_ldflags.patch ---
Add LDFLAGS variable to the lines that create the shared objects.

Extra link options are needed on some platforms, such as ppc64, where a
-m64 switch is needed.
Index: library/Makefile
===================================================================
--- library.orig/Makefile
+++ library/Makefile
@@ -33,11 +33,11 @@ rebuild: clean all
 
 $(LIB_NAME_FULL_SPAWNER) : $(OBJS_SPAWNER)
 	mkdir -p $(INSTALL_DIR)
-	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_SPAWNER) -o $(LIB_NAME_FULL_SPAWNER) $(OBJS_SPAWNER) -lc
+	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_SPAWNER) $(LDFLAGS) -o $(LIB_NAME_FULL_SPAWNER) $(OBJS_SPAWNER) -lc
 
 $(LIB_NAME_FULL_PTY): $(OBJS_PTY)
 	mkdir -p $(INSTALL_DIR)
-	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_PTY) -o $(LIB_NAME_FULL_PTY) $(OBJS_PTY)
+	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_PTY) $(LDFLAGS) -o $(LIB_NAME_FULL_PTY) $(OBJS_PTY)
 
 clean :
 	$(RM) $(OBJS_SPAWNER) $(LIB_NAME_FULL_SPAWNER)

eclipse-cdt-ppc64-add_xopen_source-include.patch:
 openpty.c |    4 ++++
 1 file changed, 4 insertions(+)

--- NEW FILE eclipse-cdt-ppc64-add_xopen_source-include.patch ---
#define of _XOPEN_SOURCE is needed to obtain the header for ptsname.

if _XOPEN_SOURCE is not defined before including stdlib.h, a warning about
a assignment from an integer to a pointer without a cast will occur.  This
warning could actually cause problems in some circumstances, because the
upper bits of the return value could, potentially, be set to zero before
the assignment is made.
Index: library/openpty.c
===================================================================
--- library.orig/openpty.c
+++ library/openpty.c
@@ -8,6 +8,10 @@
  * Contributors:
  *     QNX Software Systems - initial API and implementation
  *******************************************************************************/
+
+
+/* _XOPEN_SOURCE is needed to bring in the header for ptsname */
+#define _XOPEN_SOURCE
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>




More information about the fedora-extras-commits mailing list