[med-svn] r13795 - in trunk/packages/saint/trunk/debian: . patches

Thorsten Alteholz alteholz at alioth.debian.org
Sat Jun 1 20:40:44 UTC 2013


Author: alteholz
Date: 2013-06-01 20:40:44 +0000 (Sat, 01 Jun 2013)
New Revision: 13795

Added:
   trunk/packages/saint/trunk/debian/patches/ld-as-needed.patch
Modified:
   trunk/packages/saint/trunk/debian/changelog
   trunk/packages/saint/trunk/debian/patches/series
Log:
small patch for linking as needed

Modified: trunk/packages/saint/trunk/debian/changelog
===================================================================
--- trunk/packages/saint/trunk/debian/changelog	2013-06-01 18:09:06 UTC (rev 13794)
+++ trunk/packages/saint/trunk/debian/changelog	2013-06-01 20:40:44 UTC (rev 13795)
@@ -1,3 +1,9 @@
+saint (2.3.4+dfsg-2) unstable; urgency=low
+
+  * add patch ld-as-needed.patch from Julian Taylor (Closes: #710364)
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sat, 01 Jun 2013 22:00:00 +0200
+
 saint (2.3.4+dfsg-1) unstable; urgency=low
 
   * new upstream version

Added: trunk/packages/saint/trunk/debian/patches/ld-as-needed.patch
===================================================================
--- trunk/packages/saint/trunk/debian/patches/ld-as-needed.patch	                        (rev 0)
+++ trunk/packages/saint/trunk/debian/patches/ld-as-needed.patch	2013-06-01 20:40:44 UTC (rev 13795)
@@ -0,0 +1,49 @@
+Description: fix build failure with ld --as-needed
+ libraries need to be placed after objects needing them
+--- a/Makefile
++++ b/Makefile
+@@ -43,7 +43,7 @@ all: makeDirs \
+ saint-reformat:
+ 	$(CC) $(CFLAGS) -c $(SRC)/SAINTreformat/*.c $(SRC)/SAINTreformat/*.h
+ 	mv *.o $(BUILD)
+-	$(CC) $(LIBS) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-reformat
++	$(CC) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-reformat $(LIBS)
+ 	rm $(BUILD)/*.o
+ 	@echo
+ 	@echo
+@@ -52,7 +52,7 @@ saint-reformat:
+ saint-spc-noctrl-matrix:
+ 	$(CC) $(CFLAGS) -c $(SRC)/SAINTspc-noctrl-matrix/*.c $(SRC)/SAINTspc-noctrl-matrix/*.h
+ 	mv *.o $(BUILD)
+-	$(CC) $(LIBS) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-noctrl-matrix
++	$(CC) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-noctrl-matrix $(LIBS)
+ 	rm $(BUILD)/*.o
+ 	@echo
+ 	@echo
+@@ -60,7 +60,7 @@ saint-spc-noctrl-matrix:
+ saint-spc-noctrl:
+ 	$(CC) $(CFLAGS) -c $(SRC)/SAINTspc-noctrl/*.c $(SRC)/SAINTspc-noctrl/*.h
+ 	mv *.o $(BUILD)
+-	$(CC) $(LIBS) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-noctrl
++	$(CC) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-noctrl $(LIBS)
+ 	rm $(BUILD)/*.o
+ 	@echo
+ 	@echo
+@@ -69,7 +69,7 @@ saint-spc-noctrl:
+ saint-spc-ctrl:
+ 	$(CC) $(CFLAGS) -c $(SRC)/SAINTspc-ctrl/*.c $(SRC)/SAINTspc-ctrl/*.h
+ 	mv *.o $(BUILD)
+-	$(CC) $(LIBS) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-ctrl
++	$(CC) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-spc-ctrl $(LIBS)
+ 	rm $(BUILD)/*.o
+ 	@echo
+ 	@echo
+@@ -78,7 +78,7 @@ saint-spc-ctrl:
+ saint-int-ctrl:
+ 	$(CC) $(CFLAGS) -c $(SRC)/SAINTint-ctrl/*.c $(SRC)/SAINTint-ctrl/*.h
+ 	mv *.o $(BUILD)
+-	$(CC) $(LIBS) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-int-ctrl
++	$(CC) $(LDFLAGS) $(BUILD)/*.o -o $(TARGET)/saint-int-ctrl $(LIBS)
+ 	rm $(BUILD)/*.o
+ 	@echo
+ 	@echo

Modified: trunk/packages/saint/trunk/debian/patches/series
===================================================================
--- trunk/packages/saint/trunk/debian/patches/series	2013-06-01 18:09:06 UTC (rev 13794)
+++ trunk/packages/saint/trunk/debian/patches/series	2013-06-01 20:40:44 UTC (rev 13795)
@@ -1 +1,2 @@
 fix-makefile.patch
+ld-as-needed.patch




More information about the debian-med-commit mailing list