LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cdw_ld_as_needed.diff of Package cdw (Project Archiving:Backup)

Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 cdw (0.7.1-1) unstable; urgency=low
 .
   * New upstream release.
Author: Felix Geyer <debfx-pkg@fobos.de>
Last-Update: <2011-10-20>
Bug-Debian: http://bugs.debian.org/646053

---

--- cdw-0.7.1.orig/src/Makefile.am
+++ cdw-0.7.1/src/Makefile.am
@@ -11,7 +11,7 @@ include $(top_srcdir)/Makefile.cdw.am
 
 
 # define common linker flags
-AM_LDFLAGS = -lmenuw -lformw -lpanelw -lncursesw -lpthread -lcdio -liso9660 -lm -lburn
+cdw_LIBS = -lmenuw -lformw -lpanelw -lncursesw -lpthread -lcdio -liso9660 -lm -lburn
 
 
 # list source files
@@ -60,7 +60,8 @@ cdw_LDADD = $(top_builddir)/src/external
 	$(top_builddir)/gnulib/lib/libgnulib.a \
 	$(top_builddir)/src/external_tools/libcdwexternaltools.a \
 	$(top_builddir)/src/user_interface/widgets/libcdwwidgets.a \
-	$(top_builddir)/src/tasks/libcdwtasks.a
+	$(top_builddir)/src/tasks/libcdwtasks.a \
+	$(cdw_LIBS)
 
 cdw_SOURCES = $(cdw_source_files)
 
@@ -85,7 +86,8 @@ cdw_tests_LDADD = $(top_builddir)/src/ut
 	$(top_builddir)/gnulib/lib/libgnulib.a \
 	$(top_builddir)/src/external_tools/libcdwexternaltools_check.a \
 	$(top_builddir)/src/user_interface/widgets/libcdwwidgets_check.a \
-	$(top_builddir)/src/tasks/libcdwtasks_check.a
+	$(top_builddir)/src/tasks/libcdwtasks_check.a \
+	$(cdw_LIBS)
 
 cdw_tests_SOURCES = $(cdw_source_files)
 
--- cdw-0.7.1.orig/src/Makefile.in
+++ cdw-0.7.1/src/Makefile.in
@@ -303,7 +303,7 @@ CDW_BUILD_CFLAGS_WARNINGS = -Wformat -Wf
 # use $(top_srcdir); $(top_builddir) would fail during "make distcheck"
 
 # define common linker flags
-AM_LDFLAGS = -lmenuw -lformw -lpanelw -lncursesw -lpthread -lcdio -liso9660 -lm -lburn
+cdw_LIBS = -lmenuw -lformw -lpanelw -lncursesw -lpthread -lcdio -liso9660 -lm -lburn
 
 # list source files
 cdw_source_files = cddb.c main.c
@@ -325,7 +325,8 @@ cdw_LDADD = $(top_builddir)/src/external
 	$(top_builddir)/gnulib/lib/libgnulib.a \
 	$(top_builddir)/src/external_tools/libcdwexternaltools.a \
 	$(top_builddir)/src/user_interface/widgets/libcdwwidgets.a \
-	$(top_builddir)/src/tasks/libcdwtasks.a
+	$(top_builddir)/src/tasks/libcdwtasks.a \
+	$(cdw_LIBS)
 
 cdw_SOURCES = $(cdw_source_files)
 cdw_tests_CPPFLAGS = -DCDW_UNIT_TEST_CODE $(AM_CPPFLAGS)
@@ -345,7 +346,8 @@ cdw_tests_LDADD = $(top_builddir)/src/ut
 	$(top_builddir)/gnulib/lib/libgnulib.a \
 	$(top_builddir)/src/external_tools/libcdwexternaltools_check.a \
 	$(top_builddir)/src/user_interface/widgets/libcdwwidgets_check.a \
-	$(top_builddir)/src/tasks/libcdwtasks_check.a
+	$(top_builddir)/src/tasks/libcdwtasks_check.a \
+	$(cdw_LIBS)
 
 cdw_tests_SOURCES = $(cdw_source_files)