tag 556351 + patch
severity 556351 normal
user [email protected]
usertags 556351 + origin-ubuntu natty ubuntu-patch
thanks

I tested in Ubuntu natty with binutils-gold and worked. i attached a
patch to fixing it

-- 
[ Mahyuddin Susanto ]
http://tripledin.wordpress.com/
## Description: Fix ftbfs binutils-gold with ld no-add-needed by adding X11 library linker
## Author: Mahyuddin Susanto
## Bug-Debian: http://bugs.debian.org/554370
Index: smpeg-0.4.5+cvs20030824/configure.in
===================================================================
--- smpeg-0.4.5+cvs20030824.orig/configure.in	2011-02-28 22:59:16.840774098 +0700
+++ smpeg-0.4.5+cvs20030824/configure.in	2011-02-28 22:59:17.028277392 +0700
@@ -137,7 +137,7 @@
 	    AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
 )
 CFLAGS="$CFLAGS $SDL_CFLAGS"
-LIBS="$LIBS $SDL_LIBS"
+LIBS="$LIBS $SDL_LIBS -lX11"
 
 dnl See if we need to pass -lm for the math library
 AC_CHECK_LIB(m, sqrt, LIBS="$LIBS -lm")
Index: smpeg-0.4.5+cvs20030824/Makefile.am
===================================================================
--- smpeg-0.4.5+cvs20030824.orig/Makefile.am	2011-02-28 23:01:02.136768544 +0700
+++ smpeg-0.4.5+cvs20030824/Makefile.am	2011-02-28 23:00:28.680296770 +0700
@@ -40,7 +40,7 @@
 
 libsmpeg_la_LIBADD =		\
 	audio/libaudio.la	\
-	video/libvideo.la
+	video/libvideo.la -lX11
 
 EXTRA_DIST =		\
 	CHANGES		\
@@ -70,15 +70,15 @@
 # Sources for plaympeg
 man_MANS = plaympeg.1 gtv.1
 plaympeg_SOURCES = plaympeg.c
-plaympeg_LDADD = libsmpeg.la
+plaympeg_LDADD = libsmpeg.la -lX11
 
 # Sources for gtv
 gtv_SOURCES = gtv.c gtv.h
-gtv_LDADD = @GTK_LIBS@ libsmpeg.la
+gtv_LDADD = @GTK_LIBS@ libsmpeg.la -lX11
 
 # Sources for glmovie
 glmovie_SOURCES = glmovie-tile.c glmovie.c glmovie.h
-glmovie_LDADD = @GL_LIBS@ libsmpeg.la
+glmovie_LDADD = @GL_LIBS@ libsmpeg.la -lX11
 
 # M4 macro file for inclusion with autoconf
 m4datadir = $(datadir)/aclocal
Index: smpeg-0.4.5+cvs20030824/Makefile.in
===================================================================
--- smpeg-0.4.5+cvs20030824.orig/Makefile.in	2011-02-28 23:01:02.184769480 +0700
+++ smpeg-0.4.5+cvs20030824/Makefile.in	2011-02-28 23:01:01.340292392 +0700
@@ -310,7 +310,7 @@
 
 libsmpeg_la_LIBADD = \
 	audio/libaudio.la	\
-	video/libvideo.la
+	video/libvideo.la -lX11
 
 EXTRA_DIST = \
 	CHANGES		\
@@ -334,15 +334,15 @@
 # Sources for plaympeg
 man_MANS = plaympeg.1 gtv.1
 plaympeg_SOURCES = plaympeg.c
-plaympeg_LDADD = libsmpeg.la
+plaympeg_LDADD = libsmpeg.la -lX11
 
 # Sources for gtv
 gtv_SOURCES = gtv.c gtv.h
-gtv_LDADD = @GTK_LIBS@ libsmpeg.la
+gtv_LDADD = @GTK_LIBS@ libsmpeg.la -lX11
 
 # Sources for glmovie
 glmovie_SOURCES = glmovie-tile.c glmovie.c glmovie.h
-glmovie_LDADD = @GL_LIBS@ libsmpeg.la
+glmovie_LDADD = @GL_LIBS@ libsmpeg.la -lX11
 
 # M4 macro file for inclusion with autoconf
 m4datadir = $(datadir)/aclocal

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to